You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.fbprefs 6.7KB

Support LFS protocol and a file system based LFS storage Implement LfsProtocolServlet handling the "Git LFS v1 Batch API" protocol [1]. Add a simple file system based LFS content store and the debug-lfs-store command to simplify testing. Introduce a LargeFileRepository interface to enable additional storage implementation while reusing the same protocol implementation. At the client side we have to configure the lfs.url, specify that we use the batch API and we don't use authentication: [lfs] url = http://host:port/lfs batch = true [lfs "http://host:port/lfs"] access = none the git-lfs client appends the "objects/batch" to the lfs.url. Hard code an Authorization header in the FileLfsRepository.getAction because then git-lfs client will skip asking for credentials. It will just forward the Authorization header from the response to the download/upload request. The FileLfsServlet supports file content storage for "Large File Storage" (LFS) server as defined by the Github LFS API [2]. - upload and download of large files is probably network bound hence use an asynchronous servlet for good scalability - simple object storage in file system with 2 level fan-out - use LockFile to protect writing large objects against multiple concurrent uploads of the same object - to prevent corrupt uploads the uploaded file is rejected if its hash doesn't match id given in URL The debug-lfs-store command is used to run the LfsProtocolServlet and, optionally, the FileLfsServlet which makes it easier to setup a local test server. [1] https://github.com/github/git-lfs/blob/master/docs/api/http-v1-batch.md [2] https://github.com/github/git-lfs/tree/master/docs/api Bug: 472961 Change-Id: I7378da5575159d2195138d799704880c5c82d5f3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com> Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
8 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. #FindBugs User Preferences
  2. #Mon May 04 16:24:13 PDT 2009
  3. detectorAppendingToAnObjectOutputStream=AppendingToAnObjectOutputStream|true
  4. detectorBadAppletConstructor=BadAppletConstructor|false
  5. detectorBadResultSetAccess=BadResultSetAccess|true
  6. detectorBadSyntaxForRegularExpression=BadSyntaxForRegularExpression|true
  7. detectorBadUseOfReturnValue=BadUseOfReturnValue|true
  8. detectorBadlyOverriddenAdapter=BadlyOverriddenAdapter|true
  9. detectorBooleanReturnNull=BooleanReturnNull|true
  10. detectorCallToUnsupportedMethod=CallToUnsupportedMethod|true
  11. detectorCheckImmutableAnnotation=CheckImmutableAnnotation|true
  12. detectorCheckTypeQualifiers=CheckTypeQualifiers|true
  13. detectorCloneIdiom=CloneIdiom|false
  14. detectorComparatorIdiom=ComparatorIdiom|true
  15. detectorConfusedInheritance=ConfusedInheritance|true
  16. detectorConfusionBetweenInheritedAndOuterMethod=ConfusionBetweenInheritedAndOuterMethod|true
  17. detectorCrossSiteScripting=CrossSiteScripting|true
  18. detectorDoInsideDoPrivileged=DoInsideDoPrivileged|true
  19. detectorDontCatchIllegalMonitorStateException=DontCatchIllegalMonitorStateException|true
  20. detectorDontUseEnum=DontUseEnum|true
  21. detectorDroppedException=DroppedException|true
  22. detectorDumbMethodInvocations=DumbMethodInvocations|true
  23. detectorDumbMethods=DumbMethods|true
  24. detectorDuplicateBranches=DuplicateBranches|true
  25. detectorEmptyZipFileEntry=EmptyZipFileEntry|true
  26. detectorEqualsOperandShouldHaveClassCompatibleWithThis=EqualsOperandShouldHaveClassCompatibleWithThis|true
  27. detectorFinalizerNullsFields=FinalizerNullsFields|true
  28. detectorFindBadCast2=FindBadCast2|true
  29. detectorFindBadForLoop=FindBadForLoop|true
  30. detectorFindCircularDependencies=FindCircularDependencies|false
  31. detectorFindDeadLocalStores=FindDeadLocalStores|true
  32. detectorFindDoubleCheck=FindDoubleCheck|true
  33. detectorFindEmptySynchronizedBlock=FindEmptySynchronizedBlock|true
  34. detectorFindFieldSelfAssignment=FindFieldSelfAssignment|true
  35. detectorFindFinalizeInvocations=FindFinalizeInvocations|true
  36. detectorFindFloatEquality=FindFloatEquality|true
  37. detectorFindHEmismatch=FindHEmismatch|true
  38. detectorFindInconsistentSync2=FindInconsistentSync2|true
  39. detectorFindJSR166LockMonitorenter=FindJSR166LockMonitorenter|true
  40. detectorFindLocalSelfAssignment2=FindLocalSelfAssignment2|true
  41. detectorFindMaskedFields=FindMaskedFields|true
  42. detectorFindMismatchedWaitOrNotify=FindMismatchedWaitOrNotify|true
  43. detectorFindNakedNotify=FindNakedNotify|true
  44. detectorFindNonSerializableStoreIntoSession=FindNonSerializableStoreIntoSession|true
  45. detectorFindNonSerializableValuePassedToWriteObject=FindNonSerializableValuePassedToWriteObject|true
  46. detectorFindNonShortCircuit=FindNonShortCircuit|true
  47. detectorFindNullDeref=FindNullDeref|true
  48. detectorFindNullDerefsInvolvingNonShortCircuitEvaluation=FindNullDerefsInvolvingNonShortCircuitEvaluation|true
  49. detectorFindOpenStream=FindOpenStream|true
  50. detectorFindPuzzlers=FindPuzzlers|true
  51. detectorFindRefComparison=FindRefComparison|true
  52. detectorFindReturnRef=FindReturnRef|true
  53. detectorFindRunInvocations=FindRunInvocations|true
  54. detectorFindSelfComparison=FindSelfComparison|true
  55. detectorFindSelfComparison2=FindSelfComparison2|true
  56. detectorFindSleepWithLockHeld=FindSleepWithLockHeld|true
  57. detectorFindSpinLoop=FindSpinLoop|true
  58. detectorFindSqlInjection=FindSqlInjection|true
  59. detectorFindTwoLockWait=FindTwoLockWait|true
  60. detectorFindUncalledPrivateMethods=FindUncalledPrivateMethods|true
  61. detectorFindUnconditionalWait=FindUnconditionalWait|true
  62. detectorFindUninitializedGet=FindUninitializedGet|true
  63. detectorFindUnrelatedTypesInGenericContainer=FindUnrelatedTypesInGenericContainer|true
  64. detectorFindUnreleasedLock=FindUnreleasedLock|true
  65. detectorFindUnsatisfiedObligation=FindUnsatisfiedObligation|true
  66. detectorFindUnsyncGet=FindUnsyncGet|true
  67. detectorFindUselessControlFlow=FindUselessControlFlow|true
  68. detectorFormatStringChecker=FormatStringChecker|true
  69. detectorHugeSharedStringConstants=HugeSharedStringConstants|true
  70. detectorIDivResultCastToDouble=IDivResultCastToDouble|true
  71. detectorIncompatMask=IncompatMask|true
  72. detectorInconsistentAnnotations=InconsistentAnnotations|true
  73. detectorInefficientMemberAccess=InefficientMemberAccess|false
  74. detectorInefficientToArray=InefficientToArray|true
  75. detectorInfiniteLoop=InfiniteLoop|true
  76. detectorInfiniteRecursiveLoop=InfiniteRecursiveLoop|true
  77. detectorInfiniteRecursiveLoop2=InfiniteRecursiveLoop2|false
  78. detectorInheritanceUnsafeGetResource=InheritanceUnsafeGetResource|true
  79. detectorInitializationChain=InitializationChain|true
  80. detectorInstantiateStaticClass=InstantiateStaticClass|true
  81. detectorInvalidJUnitTest=InvalidJUnitTest|true
  82. detectorIteratorIdioms=IteratorIdioms|true
  83. detectorLazyInit=LazyInit|true
  84. detectorLoadOfKnownNullValue=LoadOfKnownNullValue|true
  85. detectorMethodReturnCheck=MethodReturnCheck|true
  86. detectorMultithreadedInstanceAccess=MultithreadedInstanceAccess|true
  87. detectorMutableLock=MutableLock|true
  88. detectorMutableStaticFields=MutableStaticFields|true
  89. detectorNaming=Naming|true
  90. detectorNumberConstructor=NumberConstructor|true
  91. detectorOverridingEqualsNotSymmetrical=OverridingEqualsNotSymmetrical|true
  92. detectorPreferZeroLengthArrays=PreferZeroLengthArrays|true
  93. detectorPublicSemaphores=PublicSemaphores|false
  94. detectorQuestionableBooleanAssignment=QuestionableBooleanAssignment|true
  95. detectorReadReturnShouldBeChecked=ReadReturnShouldBeChecked|true
  96. detectorRedundantInterfaces=RedundantInterfaces|true
  97. detectorRepeatedConditionals=RepeatedConditionals|true
  98. detectorRuntimeExceptionCapture=RuntimeExceptionCapture|true
  99. detectorSerializableIdiom=SerializableIdiom|true
  100. detectorStartInConstructor=StartInConstructor|true
  101. detectorStaticCalendarDetector=StaticCalendarDetector|true
  102. detectorStringConcatenation=StringConcatenation|true
  103. detectorSuperfluousInstanceOf=SuperfluousInstanceOf|true
  104. detectorSuspiciousThreadInterrupted=SuspiciousThreadInterrupted|true
  105. detectorSwitchFallthrough=SwitchFallthrough|true
  106. detectorSynchronizeAndNullCheckField=SynchronizeAndNullCheckField|true
  107. detectorSynchronizeOnClassLiteralNotGetClass=SynchronizeOnClassLiteralNotGetClass|true
  108. detectorSynchronizingOnContentsOfFieldToProtectField=SynchronizingOnContentsOfFieldToProtectField|true
  109. detectorURLProblems=URLProblems|true
  110. detectorUncallableMethodOfAnonymousClass=UncallableMethodOfAnonymousClass|true
  111. detectorUnnecessaryMath=UnnecessaryMath|true
  112. detectorUnreadFields=UnreadFields|true
  113. detectorUseObjectEquals=UseObjectEquals|false
  114. detectorUselessSubclassMethod=UselessSubclassMethod|false
  115. detectorVarArgsProblems=VarArgsProblems|true
  116. detectorVolatileUsage=VolatileUsage|true
  117. detectorWaitInLoop=WaitInLoop|true
  118. detectorWrongMapIterator=WrongMapIterator|true
  119. detectorXMLFactoryBypass=XMLFactoryBypass|true
  120. detector_threshold=2
  121. effort=default
  122. excludefilter0=findBugs/FindBugsExcludeFilter.xml
  123. filter_settings=Medium|BAD_PRACTICE,CORRECTNESS,MT_CORRECTNESS,PERFORMANCE,STYLE|false
  124. filter_settings_neg=MALICIOUS_CODE,NOISE,I18N,SECURITY,EXPERIMENTAL|
  125. run_at_full_build=true