doc/asmack-beem/beem_patches/50-fix-sasl-incorrect-encoding.patch
author Nikita Kozlov <nikita@beem-project.com>
Sun, 16 Jan 2011 12:44:59 +0100
changeset 854 30d32b73be7c
parent 797 fbd3585af53e
permissions -rw-r--r--
fix Bug #321 I have commented the PrivacyListManagerAdapter initialization because the exception came from the underneath code. Also, since the feature isn't finished (especially tested) and enabled in the gui, it will be safer.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
797
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
     1
   Copyright (C) 2010 by Frederic-Charles Barthelery,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
     2
                         Jean-Manuel Da Silva,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
     3
                         Nikita Kozlov,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
     4
                         Philippe Lago,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
     5
                         Jean Baptiste Vergely,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
     6
                         Vincent Veronis.
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
     7
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
     8
   Licensed under the Apache License, Version 2.0 (the "License");
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
     9
   you may not use this file except in compliance with the License.
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    10
   You may obtain a copy of the License at
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    11
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    12
       http://www.apache.org/licenses/LICENSE-2.0
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    13
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    14
   Unless required by applicable law or agreed to in writing, software
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    15
   distributed under the License is distributed on an "AS IS" BASIS,
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    16
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    17
   See the License for the specific language governing permissions and
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    18
   limitations under the License.
fbd3585af53e Explicit Apache License 2.0 for asmack_patches
Da Risk <darisk972@gmail.com>
parents: 786
diff changeset
    19
786
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    20
--- org/jivesoftware/smack/sasl/SASLMechanism.java~	2010-07-20 15:13:25.000000000 +0200
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    21
+++ org/jivesoftware/smack/sasl/SASLMechanism.java	2010-07-20 15:15:41.000000000 +0200
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    22
@@ -263,9 +263,6 @@
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    23
             if (authenticationText != null) {
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    24
                 stanza.append(authenticationText);
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    25
             }
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    26
-            else {
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    27
-                stanza.append("=");
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    28
-            }
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    29
             stanza.append("</response>");
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    30
             return stanza.toString();
5629d4b4f04c Add a patch for asmack to fix sasl incorrect encoding.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    31
         }