Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Feb 2007
    Location
    Dortmund, Germany
    Posts
    168

    Default

    The following patch should resolve the "Session secret is different" problem. I tested it only with contacts, appointments and tasks.

    Index: ox-core/src/main/java/com/funambol/ox/util/Utility.java
    ================================================== =================
    --- ox-core/src/main/java/com/funambol/ox/util/Utility.java (revision 574)
    +++ ox-core/src/main/java/com/funambol/ox/util/Utility.java (working copy)
    @@ -322,7 +322,7 @@
    for (int i=0; i<h.length; i++){
    // parser header cookie
    if (h[i].getName().equals("Set-Cookie")){
    - if (h[i].getValue().startsWith("open-xchange-session")){
    + if (h[i].getValue().startsWith("open-xchange-secret")){
    tmp = h[i].getValue();
    // test "; path=/"
    int postfixlength = "; path=/".length();
    Markus Wagner
    Open-Xchange Quality Assurance

  2. #12
    Join Date
    Feb 2007
    Location
    Dortmund, Germany
    Posts
    168

    Default

    Here is a patched ox core jar which must be replaced in

    /opt/Funambol/ox-listener/lib/

    and

    /opt/Funambol/tools/tomcat/webapps/funambol/WEB-INF/lib/
    Attached Files Attached Files
    Markus Wagner
    Open-Xchange Quality Assurance

  3. #13
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    3,695

    Default

    Thanks

    Hope that helps!

  4. #14
    rhuber0711 Guest

    Default

    Hi,
    thanks a lot for the patch. Didn't expect it to be so easy but was working on adding that open-xchange-secret as additional variable which forced more and more changes.
    The re-used session cookie variable is not needed in the login process anymore?

    Anyway i tested it and it seems to work as well as before.

    Kind regards
    Raimund

    Quote Originally Posted by Markus Wagner View Post
    The following patch should resolve the "Session secret is different" problem. I tested it only with contacts, appointments and tasks.

    Index: ox-core/src/main/java/com/funambol/ox/util/Utility.java
    ================================================== =================
    --- ox-core/src/main/java/com/funambol/ox/util/Utility.java (revision 574)
    +++ ox-core/src/main/java/com/funambol/ox/util/Utility.java (working copy)
    @@ -322,7 +322,7 @@
    for (int i=0; i<h.length; i++){
    // parser header cookie
    if (h[i].getName().equals("Set-Cookie")){
    - if (h[i].getValue().startsWith("open-xchange-session")){
    + if (h[i].getValue().startsWith("open-xchange-secret")){
    tmp = h[i].getValue();
    // test "; path=/"
    int postfixlength = "; path=/".length();

  5. #15
    Join Date
    Oct 2009
    Posts
    48

    Default

    Genial, hier klappts auch wieder.

    Danke und Gruss
    Andreas

  6. #16
    Maxfurn Guest

    Default

    Hello,

    Could you please explain how to compile the ox-core jar ?
    We use a 7.1.0 (beta?) connector, and can't use your patched version

    Thanks in advance
    Bas van den Heuvel

  7. #17
    rhuber0711 Guest

    Default

    Hi,
    to compile the connector download the source for your version from funambol's repositories.
    If you don't have Maven installed (the mvn command) get it from http://maven.apache.org/
    Inside the source directory you downloaded before execute
    Code:
    mvn validate
    it should download all build dependencies and check for your environment.
    afterwards you can use
    Code:
    mvn compile
    and
    Code:
    mvn package
    If that works you got a build environment.
    No you could add the patch and compile, package again.

    The package command creates the new jar file you need to replace.

    Kind regards
    Raimund

  8. #18
    Join Date
    Nov 2010
    Location
    Lleida, Spain
    Posts
    22

    Default Build Funnambol connector

    Hello, first of all thanks for the patch! I spent some days trying to make Funambol Connector work with OX 6.18 with no success.

    For those who are using connector 7.10 or anyone who need it, in order to build the connector with this fix, you can proceed as follows:

    -. Download the sources from subversion repository:
    svn checkout https://core.forge.funambol.org/svn/core/trunk core --username guest (empty password)

    -. You must have installed the build tool marven2 (mvn) to compile sources.

    -. Locate this line in ox-core/src/main/java/com/funambol/ox/util/Utility.java:
    if (h[i].getValue().startsWith("open-xchange-session"))
    -. Replace for:
    if (h[i].getValue().startsWith("open-xchange-secret"))

    -. Create or edit the file ~/.m2/settings.xml with this:

    Code:
    <settings xmlns="http://maven.apache.​org/SETTINGS/1.0.0"
       xmlns:xsi="http://www.w3.org/20​01/XMLSchema-instanc​e"
       xsi:schemaLocation="http://maven.apache.​org/SETTINGS/1.0.0
                           http://maven.apache.​org/xsd/settings-1.0​.0.xsd">
    <profiles>
    <profile>
    <id>funambol</id>
    <repositories>
    <repository>
    <id>central</id>
    <url>http://m2.funambol.o​rg/repositories/arti​facts</url>
    </repository>
    </repositories>
    <pluginRepositories>
    <pluginRepository>
    <id>central</id>
    <url>http://m2.funambol.o​rg/repositories/arti​facts</url>
    </pluginRepository>
    </pluginRepositories>
    </profile>
    </profiles>
    
    <activeProfiles>
    <activeProfile​>funambol</active​Profile>
    </activeProfiles>
    </settings>
    -. cd to the repo source root

    -. Build sources:
    mvn compile

    Now you can locate the built class (ox-core/target/classes/com/funambol/ox/util/Utility.class) and add it to the ox-connector-7.1.0.s4j package inside ox-core-7.1.0.jar (ox-connector-7.1.0.s4j/lib/ox-core-7.1.0.jar/lib/) replacing the old existing Utility.class (you can package this inside the original ox-connector-xxx.s4j directly with you package manager; Gnome's File Roller works ok).

    -. FINALLY you can proceed with the connector installation as usual and all should work fine


    P.S. I attach the packaged 7.10 connector s4j file, for those who want to avoid the build process.



    Quote Originally Posted by Maxfurn View Post
    Hello,

    Could you please explain how to compile the ox-core jar ?
    We use a 7.1.0 (beta?) connector, and can't use your patched version

    Thanks in advance
    Bas van den Heuvel
    Attached Files Attached Files

  9. #19
    Join Date
    Dec 2009
    Posts
    25

    Default How to patch 7.1.0

    For anyone trying to patch 7.1.0 see http://blog.peter-b.org/2010/12/11/f...ver-error-511/ - ymmv.

    Thanks to Bas (post above) for the actual patch. Shame there's no documentation anywhere.....!

  10. #20

    Default

    Hat denn irgendjemand den Connector mit der aktuellen Ox-CE am laufen?

    Gruß

    Daniel

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •