You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Body Mass (JIRA)" <ji...@codehaus.org> on 2006/12/11 20:01:46 UTC

[jira] Created: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
---------------------------------------------------------------------------------------------------------------

                 Key: SCM-261
                 URL: http://jira.codehaus.org/browse/SCM-261
             Project: Maven SCM
          Issue Type: Bug
          Components: maven-scm-provider-synergy
    Affects Versions: 1.0-beta-4
         Environment: All Synergy environments
            Reporter: Body Mass


We've started testing and hit our first snag:

A unique locator in synergy is: <name>~<version>:<type>:<instance>

The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.

For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.

ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
arc#6602 completed k1gmd00 task <void> arc <void>
arc#6607 completed k1gmd00 task <void> arc <void>
arc#6619 completed k1jcs01 task <void> arc <void>
arc#6620 completed k1jcs01 task <void> arc <void>
arc#6630 completed k1gmd00 task <void> arc <void>
arc#6632 completed k1gmd00 task <void> arc <void>
arc#6634 completed k1jcs01 task <void> arc <void>
arc#6637 completed k1gmd00 task <void> arc <void>
arc#6638 completed k1gmd00 task <void> arc <void>
arc#6644 completed k1jcs01 task <void> arc <void>
arc#6645 completed k1jcs01 task <void> arc <void>
arc#6646 completed k1gmd00 task <void> arc <void>
arc#6647 completed k1jcs01 task <void> arc <void>
arc#6648 completed k1gmd00 task <void> arc <void>
arc#6649 completed k1jcs01 task <void> arc <void>
arc#6652 completed k1gmd00 task <void> arc <void>
arc#6656 completed k1gmd00 task <void> arc <void>
arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Body Mass (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202743#action_202743 ] 

Body Mass commented on SCM-261:
-------------------------------

Sorry for the delay. I think the problem is more broad. I could have two objects with the same name version, type, but differing only by instance id (directories are most common example in the java world, but is a valid concept for projects). This can happen when not using DCM at all, but it absolutely *will* happen with DCM turned on.

I could be wrong, but I think if the SCM URL would take an optional instance identifier it would fix the issue for all cases rather than just trying to fix the DCM problem. If the user does not specify the instance id, then it defaults to 1 if the user does not specify it. I think putting the burden on the user to figure out the instance string (and possibly database ID and dcm delimiter) for their projects would be reasonable.

That being said, I took a look at the source a long time ago but I didn't have time to continue investigation.

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Subir S (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=203772#action_203772 ] 

Subir S commented on SCM-261:
-----------------------------

Body Mass,

My assumption about DCM in step b.) above was wrong. I noticed that instance of a project (generically object) need not be same as the local database. It can be that of the remote database also. Secondly even in DB where there is no DCM in use instance need not be default 1. It can also change.

So i fixed this as per your suggestion. Such that in the SCM URL the last or 6th parameter is an optional (instance). If specified then its used, else default value of '1' is used, so that current users do not get affected.

It works fine with Windows environment. With Linux testing is not possible due to a plexus-util issue. However that is not related to this case. I have checked that construction of the argument is fine with Linux also.

I will submit a patch soon, so that this can be included to SCM 1.3

Thanks for your valuable comments.


> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Venisse updated SCM-261:
---------------------------------

    Fix Version/s: future

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy reopened SCM-261:
------------------------------


patch for site to apply

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>            Assignee: Olivier Lamy
>             Fix For: 1.3
>
>         Attachments: SCM-261-505-maven-scm-site.patch, SCM-261-maven-scm.patch
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Subir S (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Subir S updated SCM-261:
------------------------

    Attachment: SCM-261-505-maven-scm-site.patch

Site update for 505 and 261

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>            Assignee: Olivier Lamy
>             Fix For: 1.3
>
>         Attachments: SCM-261-505-maven-scm-site.patch, SCM-261-maven-scm.patch
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Body Mass (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202743#action_202743 ] 

Body Mass edited comment on SCM-261 at 12/15/09 1:14 PM:
---------------------------------------------------------

Sorry for the delay. I think the problem is more broad. I could have two objects with the same name version, type, but differing only by instance id (directories are most common example in the java world, but is a valid concept for projects). This can happen when not using DCM at all, but it absolutely *will* happen with DCM turned on.

I could be wrong, but I think if the SCM URL would take an optional instance identifier it would fix the issue for all cases rather than just trying to fix the DCM problem. If the user does not specify the instance id, then it defaults to 1. I think putting the burden on the user to figure out the instance string (and possibly database ID and dcm delimiter) for their projects would be reasonable.

That being said, I took a look at the source a long time ago but I didn't have time to continue investigation.

      was (Author: bodymass):
    Sorry for the delay. I think the problem is more broad. I could have two objects with the same name version, type, but differing only by instance id (directories are most common example in the java world, but is a valid concept for projects). This can happen when not using DCM at all, but it absolutely *will* happen with DCM turned on.

I could be wrong, but I think if the SCM URL would take an optional instance identifier it would fix the issue for all cases rather than just trying to fix the DCM problem. If the user does not specify the instance id, then it defaults to 1 if the user does not specify it. I think putting the burden on the user to figure out the instance string (and possibly database ID and dcm delimiter) for their projects would be reasonable.

That being said, I took a look at the source a long time ago but I didn't have time to continue investigation.
  
> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated SCM-261:
-----------------------------

    Fix Version/s:     (was: future)
                   1.3
         Assignee: Olivier Lamy

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>            Assignee: Olivier Lamy
>             Fix For: 1.3
>
>         Attachments: SCM-261-maven-scm.patch
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Subir S (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202660#action_202660 ] 

Subir S commented on SCM-261:
-----------------------------

Ok, there is no way to fetch dcm delimiter from the database using any cli commands.

Description about it from Telelogic Guide is:
[quote]A DCM Delimiter is the character that is used: 1) Between the database ID and object instance in object references, 2) Between the database ID and object version in imported objects that have been checked out in a destination database, and 3) Between the database ID and task number in some dialogs where task numbers are displayed.

The default DCM Delimiter is "#". The following characters can also be used: "!", "~", or "=". 

<strong>The DCM Delimiter must be the same in all databases in a given DCM cluster. </strong>[unquote]

The line in bold means that this parameter is something which remains same for all the databases in the distributed cluster. Hence we can take this as a input parameter in the SCM URL in the end (optional though).

Logic should be: a.) If dbid present, and dcm_delimiter specified, use that to construct instance. ELSE b.) If dbid present and dcm_delimiter not specified, use # to construct instance c.) If dbid not present, use '1' as the instance.

Any comments??

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Subir S (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202456#action_202456 ] 

Subir S commented on SCM-261:
-----------------------------

This is something very important to fix. Since DCM is always something very commonly used in CM/Synergy SCM. Will we able to claim Maven-SCM fully supports CM/Synergy with out resolving this issue. 

What help can i extend to get this fixed? 


> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Body Mass (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_91133 ] 

Body Mass commented on SCM-261:
-------------------------------

I just wanted to add a reference to 

http://cruisecontrol.sourceforge.net/main/configxml.html#cmsynergy

CruiseControl's CMSynergy integration correctly deals with this. More specifically, it has an "instance" attribute for the project which is defined as:

Used to set the project's instance value. As CM Synergy only allows a single instance of a project object in any given database, this attribute defaults to "1", and should not need to be changed by most users. You might, however, need to set this value when using the DCM (Distributed Change Management) feature of the tool - which appends the DB name to the instance value.

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Subir S (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Subir S updated SCM-261:
------------------------

    Attachment: SCM-261-maven-scm.patch

Patch for this issue.

Tested with Windows and Linux. Works fine with Windows. Testing in Linux not possible due to [SCM-514|http://jira.codehaus.org/browse/SCM-514]

However that case is related to Quotes in arguments.

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>         Attachments: SCM-261-maven-scm.patch
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed SCM-261.
----------------------------

    Resolution: Fixed

fixed in [rev 894254|http://svn.apache.org/viewvc?rev=894254&view=rev]

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>            Assignee: Olivier Lamy
>             Fix For: 1.3
>
>         Attachments: SCM-261-maven-scm.patch
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed SCM-261.
----------------------------

    Resolution: Fixed

documentation patch rev 897841.
Thanks !

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>            Assignee: Olivier Lamy
>             Fix For: 1.3
>
>         Attachments: SCM-261-505-maven-scm-site.patch, SCM-261-maven-scm.patch
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Subir S (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202647#action_202647 ] 

Subir S commented on SCM-261:
-----------------------------

I saw only two references of this kind of hardcoding in source code.

One way to resolve this would be to decifer the database_id by executing this command. 'ccm dcm -show -dbid'

For DCM enabled databases, this returns the database name configured in DCM cluster.

For non DCM enabled databases, this returns nothing.

However DCM delimiter is also configurable, and by default it is '#'. But i am not able to figure out how to know the exact delimiter directly from the database. Any clues? If this is also found, then we can fix this issue.

> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (SCM-261) Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)

Posted by "Subir S (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SCM-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202995#action_202995 ] 

Subir S commented on SCM-261:
-----------------------------

Body Mass,
I guess you are getting confused. An instance is comprised of <database_id><dcm_delimiter><objectversion>

First thing is:

a.) SCM URL in POM <scm> element specifies a prep project details. 
b.) Consider databases dcmdb1 and dcmdb2 in the SCM cluster. When you check-in the POM in dcmdb1 with the instance as dcmdb1#1, then it will not work in dcmdb2. Reason: A prep 'project' is always local to any DCM database. So we cannot have the configuration which is local to a particular database as part of the SCM URL. Only global configurations can be put there. Like DCM delimiter has to be same in every database (both dcmdb1 and dcmdb2), so it can be put to SCM URL.
c.) We can decifer the database names from db itself.
d.) If you saw the source code, then you would know that on getWorkingProject and getCompletedTasks use the complete %objectname format in ccm queries.

Secondly what you said is the generic format of objectname in a DCM enabled database. Atleast i did not understand how that causes a issue here. Incase you want to elaborate with examples, as to why that makes the current proposed fix wrong, then that would be great!.

I will try to implement this and see if it works. If it works and maven-scm-provider-synergy needs a patch i will submit that. If not lets forget using maven with CM/Synergy.


> Synergy provider assumes instance of 1 for projects... won't work for distributed CM (and some other scenarios)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: SCM-261
>                 URL: http://jira.codehaus.org/browse/SCM-261
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-synergy
>    Affects Versions: 1.0-beta-4
>         Environment: All Synergy environments
>            Reporter: Body Mass
>             Fix For: future
>
>
> We've started testing and hit our first snag:
> A unique locator in synergy is: <name>~<version>:<type>:<instance>
> The new snergy provider appears to assume thie instance is 1, and cannot find projects whose instance is not 1. This is not a valid for a Distributed CM install, for example, where 1 cannot be the instance number as Synergy will not allow it. This instance can be any string, and should be specified in the SCM URL or some other appropriate configuration mechanism.
> For example following is a query that works against my developer workspace. This same funkiness for DCM also applies to task names, but I can't get that far in testing due to the project problem.
> ccm> query -u is_task_in_folder_of(is_folder_in_rp_of('Arc_Workspace~k1gmd00:project:arc#1'))
> arc#6602 completed k1gmd00 task <void> arc <void>
> arc#6607 completed k1gmd00 task <void> arc <void>
> arc#6619 completed k1jcs01 task <void> arc <void>
> arc#6620 completed k1jcs01 task <void> arc <void>
> arc#6630 completed k1gmd00 task <void> arc <void>
> arc#6632 completed k1gmd00 task <void> arc <void>
> arc#6634 completed k1jcs01 task <void> arc <void>
> arc#6637 completed k1gmd00 task <void> arc <void>
> arc#6638 completed k1gmd00 task <void> arc <void>
> arc#6644 completed k1jcs01 task <void> arc <void>
> arc#6645 completed k1jcs01 task <void> arc <void>
> arc#6646 completed k1gmd00 task <void> arc <void>
> arc#6647 completed k1jcs01 task <void> arc <void>
> arc#6648 completed k1gmd00 task <void> arc <void>
> arc#6649 completed k1jcs01 task <void> arc <void>
> arc#6652 completed k1gmd00 task <void> arc <void>
> arc#6656 completed k1gmd00 task <void> arc <void>
> arc#6657 completed k1jcs01 task <void> arc <void>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira