Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1681 - 1690 of 2,757 for erros (0.02 seconds)

  1. internal/config/compress/compress_test.go

    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.str, func(t *testing.T) {
    			gotPatterns, err := parseCompressIncludes(testCase.str)
    			if !testCase.success && err == nil {
    				t.Error("expected failure but success instead")
    			}
    			if testCase.success && err != nil {
    				t.Errorf("expected success but failed instead %s", err)
    			}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  2. internal/bucket/lifecycle/noncurrentversion_test.go

    package lifecycle
    
    import "testing"
    
    func Test_NoncurrentVersionsExpiration_Validation(t *testing.T) {
    	testcases := []struct {
    		n   NoncurrentVersionExpiration
    		err error
    	}{
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays:          0,
    				NewerNoncurrentVersions: 0,
    				set:                     true,
    			},
    			err: errXMLNotWellFormed,
    		},
    		{
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Dec 14 17:41:44 GMT 2021
    - 2.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/it/search/FavoritesApiTests.java

                    .body("data", notNullValue());
        }
    
        @Test
        public void testGetFavorites_noQueryId() {
            // Test without queryId - should still work but return empty or error
            given().contentType("application/json").when().get("/api/v1/favorites").then().statusCode(200);
        }
    
        @Test
        public void testSetFavorite_ok() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/go/GoAction.java

    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.core.net.URLUtil;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.app.web.base.FessSearchAction;
    import org.codelibs.fess.app.web.error.ErrorAction;
    import org.codelibs.fess.crawler.util.CharUtil;
    import org.codelibs.fess.helper.PathMappingHelper;
    import org.codelibs.fess.helper.SearchLogHelper;
    import org.codelibs.fess.helper.ViewHelper;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 9K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/witness/MockWitnessService.java

            running.set(false);
    
            if (serverSocket != null && !serverSocket.isClosed()) {
                try {
                    serverSocket.close();
                } catch (IOException e) {
                    log.debug("Error closing server socket", e);
                }
            }
    
            if (serverThread != null) {
                try {
                    serverThread.join(5000); // Wait up to 5 seconds
                } catch (InterruptedException e) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  6. docs/zh/docs/advanced/security/http-basic-auth.md

    {* ../../docs_src/security/tutorial007_an_py310.py hl[1,12:24] *}
    
    这类似于:
    
    ```Python
    if not (credentials.username == "stanleyjobson") or not (credentials.password == "swordfish"):
        # Return some error
        ...
    ```
    
    但使用 `secrets.compare_digest()`,可以防御**时差攻击**,更加安全。
    
    ### 时差攻击 { #timing-attacks }
    
    什么是**时差攻击**?
    
    假设攻击者试图猜出用户名与密码。
    
    他们发送用户名为 `johndoe`,密码为 `love123` 的请求。
    
    然后,Python 代码执行如下操作:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  7. schema/index_test.go

    }
    
    func TestParseIndex(t *testing.T) {
    	user, err := schema.Parse(&UserIndex{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    		t.Fatalf("failed to parse user index, got error %v", err)
    	}
    
    	results := []*schema.Index{
    		{
    			Name:   "idx_user_indices_name",
    			Fields: []schema.IndexOption{{Field: &schema.Field{Name: "Name"}}},
    		},
    		{
    			Name:   "idx_name",
    			Class:  "UNIQUE",
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Fri Dec 06 02:27:44 GMT 2024
    - 7.9K bytes
    - Click Count (0)
  8. docs/distributed/DECOMMISSION.md

    Decommission of pool http://minio{1...2}/data{1...4} is complete, you may now remove it from server command line
    ```
    
    ### A pool not under decommissioning will throw an error
    
    ```
    λ mc admin decommission status alias/ http://minio{1...2}/data{1...4}
    ERROR: This pool is not scheduled for decommissioning currently.
    ```
    
    ## Canceling a decommission
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Jul 11 14:59:49 GMT 2022
    - 8.3K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        /*
         * RuntimeExceptionThrowingFuture is provably not a ListenableFuture at compile time, so this
         * code may someday upset Error Prone. We want the test, though, in case that changes in the
         * future, so we will suppress any such future Error Prone reports.
         */
        assertWithMessage(
                "Can't test the main listenInPoolThread path "
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  10. src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java

            }
        }
    
        @Test
        @DisplayName("Should pass null for SmbAuthException when error is not SmbAuthException")
        void testRenewCredentials_WithErrorNotSmbAuthException() {
            Throwable genericError = new RuntimeException("Generic Error");
            try (MockedStatic<NtlmAuthenticator> mockedNtlmAuthenticator = mockStatic(NtlmAuthenticator.class)) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.4K bytes
    - Click Count (0)
Back to Top