Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

CommunityService.updateCommunityLogo - does not work in Connections > 4.5 #1762

Open
SiriSch opened this issue Feb 1, 2016 · 8 comments
Open
Labels

Comments

@SiriSch
Copy link

SiriSch commented Feb 1, 2016

Hey @ManishKataria

I am trying to update a community logo by using the method .updateCommunityLogo but the logo won't be updated.

These are the lines I have written:

 public static void changeCommunityIcon(String IconPath) throws ClientServicesException, IOException {

 CommunityService aCommunityService = new CommunityService();
   aCommunityService.setEndpoint(basicEndpoint);


   System.out.println(IconPath); //Here I get the correct path
    File targetIcon = new File( IconPath );
 // fi.exists returns "true"
    Variables.aCommunityService.updateCommunityLogo(targetIcon, "9775...." );
  }
<properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <timestamp>${maven.build.timestamp}</timestamp>
        <maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
        <com.ibm.sbt.version>1.1.11.20151208-1200</com.ibm.sbt.version>
    </properties>

I do not get any error at all but the logo won't be updated.

After I did some research I found out that some persons could fix this problem by using

basicEndpoint.setForceDisableExpectedContinue( true ); 

but this does not work either.

I am using the newest version of sbt which currently is "1.1.11.20151208-1200".
The server version is IBM Connections 5.0 CR3.

In IBM Connections Version 4.5 it definitely works, in IBM Connections 5.0 it does NOT work.

So this seems to be a version problem.

Is there any solution?

Do you have an idea how to fix this?

I am looking forward to hearing from you.

Best regards,

Siri

@SiriSch SiriSch changed the title CommunityService.updateCommunityLogo - does not work in Connections 5.5 CommunityService.updateCommunityLogo - does not work in Connections > 4.5 Feb 1, 2016
@prb112
Copy link
Contributor

prb112 commented Feb 1, 2016

Hi @SiriSch, please work with Manish, and work with him on any further questions. Thank you Paul

@prb112 prb112 added the wontfix label Feb 1, 2016
@SiriSch
Copy link
Author

SiriSch commented Feb 9, 2016

@prb112 Manish did not give any feedback. What can I do now?

@ManishKataria
Copy link
Contributor

Hi @SiriSch , we are looking into this, would respond shortly.

@swatisingh10
Copy link
Contributor

Hi @SiriSch , I tried a already available java sample to update the community icon with Connections 5 and it worked fine.
Can you look and give the sample a try at your end , the sample name is "Update Community Logo".
Let us know your findings.

@swatisingh10
Copy link
Contributor

closed by mistake, please go through my comment above

@swatisingh10 swatisingh10 reopened this Feb 11, 2016
@SiriSch
Copy link
Author

SiriSch commented Feb 15, 2016

Hey,
first I have to say thanks for your efforts, @swatisingh10 and @ManishKataria.

To your idea with the sample "Update Community Logo" I found the following.

https://github.com/OpenNTF/SocialSDK/blob/ac9ffc6f43479a88d3cf653ba6d3f60a0f4e93a0/samples/j2ee/snippets/com.ibm.sbt.automation.test/src/main/java/com/ibm/sbt/test/java/connections/communities/UpdateCommunityLogo.java

Is this the right one? Because it says, that :

-org.junit cannot be resolved
-com.ibm.sbt.automation cannot be resolved

To my code I can add the information that I did it like this:

 public static ConnectionsBasicEndpoint basicEndpoint = (ConnectionsBasicEndpoint) EndpointFactory
            .getEndpoint("connections");


public static void referBasePoint() {
Variables.aCommunityService = new CommunityService(Variables.basicEndpoint);
}

The Communityservice works properly, at least I guess that because I can create a
Communtiy.

Maybe it is an EndPoint issue? Do I have to set further properties?
What information do you need to get a closer look into this?

Best regards

@swatisingh10
Copy link
Contributor

Hi @SiriSch

I think if you are able to create a community then it should not be an endpoint issue. The sample is located at following path

/com.ibm.sbt.samples/j2ee/snippets/com.ibm.sbt.sample.web/src/main/webapp/samples/java/Social/Communities/Update Community Logo.jsp

you can check the code here, also you can try setting up sbt sample web application on Tomcat and run the sample to see in action.

Let us know if it solves the issue- Thanks

@SiriSch
Copy link
Author

SiriSch commented Feb 15, 2016

Hi @swatisingh10,

having tested the Update Community Logo.jsp ,
it results to this:

Logo update failednull

What to do now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants