I just tried to build the whole project and find out this patch break a test:
- testPostToSpaceWithGlobalId(org.exoplatform.social.opensocial.spi.ExoActivityServiceTest)
It does so because I removed in SpaceIdentityProvider the parsing of the SpaceId.
Before the SpaceId was parsed at 2 places:
- SpaceIdentityProvider#findByRemoteId
- in the constructor of org.exoplatform.social.core.identity.model.GlobalId
So the spaceId was parsed 2 times in some cases instead of one which break the system if there is a colon character in the space name.
This need to be cleaned up and only one place should remain.
Jeremi, please attach your patch for our svn repo. It's a git patch.