You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Nicolas Lee (JIRA)" <ji...@apache.org> on 2011/06/02 20:03:48 UTC
[jira] [Created] (CMIS-380) DotCMIS drops choices returned from
server
DotCMIS drops choices returned from server
------------------------------------------
Key: CMIS-380
URL: https://issues.apache.org/jira/browse/CMIS-380
Project: Chemistry
Issue Type: Bug
Components: dotcmis
Affects Versions: DotCMIS 0.3
Reporter: Nicolas Lee
Fix For: DotCMIS 0.3
1. Connect using AtomPub binding
2. Get an ISessionfrom an IRepository
3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
public IPropertyDefinition GetPropertyDefinitionById(String id)
{
foreach (IPropertyDefinition p in propertyDefinitions)
{
if (p.Id.Equals(id))
return p;
}
return null;
}
6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller resolved CMIS-380.
---------------------------------
Resolution: Fixed
Please re-test.
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.2
> Reporter: Nicolas Lee
> Assignee: Florian Müller
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> See attachment for sample response.xml
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Nicolas Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043874#comment-13043874 ]
Nicolas Lee commented on CMIS-380:
----------------------------------
It doesn't seem to work still. I got the checkins from rev 1131045
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.2
> Reporter: Nicolas Lee
> Assignee: Florian Müller
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> See attachment for sample response.xml
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Nicolas Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Lee updated CMIS-380:
-----------------------------
Description:
1. Connect using AtomPub binding
2. Get an ISessionfrom an IRepository
3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
public IPropertyDefinition GetPropertyDefinitionById(String id)
{
foreach (IPropertyDefinition p in propertyDefinitions)
{
if (p.Id.Equals(id))
return p;
}
return null;
}
6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
See attachment for sample response.xml
was:
1. Connect using AtomPub binding
2. Get an ISessionfrom an IRepository
3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
public IPropertyDefinition GetPropertyDefinitionById(String id)
{
foreach (IPropertyDefinition p in propertyDefinitions)
{
if (p.Id.Equals(id))
return p;
}
return null;
}
6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.3
> Reporter: Nicolas Lee
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> See attachment for sample response.xml
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller reassigned CMIS-380:
-----------------------------------
Assignee: Florian Müller
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.3
> Reporter: Nicolas Lee
> Assignee: Florian Müller
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> See attachment for sample response.xml
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller updated CMIS-380:
--------------------------------
Affects Version/s: (was: DotCMIS 0.3)
DotCMIS 0.2
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.2
> Reporter: Nicolas Lee
> Assignee: Florian Müller
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> See attachment for sample response.xml
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Nicolas Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Lee updated CMIS-380:
-----------------------------
Attachment: response.xml
Sample TypeDefinition
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.3
> Reporter: Nicolas Lee
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Florian Müller (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125945#comment-13125945 ]
Florian Müller commented on CMIS-380:
-------------------------------------
There is now a new fix that requires a bit more testing. I will close this issue when this is done.
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.2
> Reporter: Nicolas Lee
> Assignee: Florian Müller
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> See attachment for sample response.xml
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Florian Müller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043277#comment-13043277 ]
Florian Müller commented on CMIS-380:
-------------------------------------
That looks like a .NET Framework issue. XmlSerializer.Deserialize() does not handle derived classes correctly. The choices end up as CMIS extensions. (Check p.Extensions when you debug.)
I'll try to find a workaround.
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.3
> Reporter: Nicolas Lee
> Assignee: Florian Müller
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> See attachment for sample response.xml
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Florian Müller (Resolved JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller resolved CMIS-380.
---------------------------------
Resolution: Fixed
Seems to work with the latest change.
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.2
> Reporter: Nicolas Lee
> Assignee: Florian Müller
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> See attachment for sample response.xml
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (CMIS-380) DotCMIS drops choices returned from
server
Posted by "Florian Müller (Reopened JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Florian Müller reopened CMIS-380:
---------------------------------
> DotCMIS drops choices returned from server
> ------------------------------------------
>
> Key: CMIS-380
> URL: https://issues.apache.org/jira/browse/CMIS-380
> Project: Chemistry
> Issue Type: Bug
> Components: dotcmis
> Affects Versions: DotCMIS 0.2
> Reporter: Nicolas Lee
> Assignee: Florian Müller
> Fix For: DotCMIS 0.3
>
> Attachments: response.xml
>
>
> 1. Connect using AtomPub binding
> 2. Get an ISessionfrom an IRepository
> 3. Use Binding from session: private ICmisBinding Binding { get { return _session.Binding; } }
> 4. Get ITypeDefinition typeDefinition from Binding.GetRepositoryService().GetTypeDefinition(repositoryId, typeId, null);
> 5. Get IPropertyDefinition p ("SVCPStr_CVL") from the typeDefinition.PropertyDefinitions:
> public IPropertyDefinition GetPropertyDefinitionById(String id)
> {
> foreach (IPropertyDefinition p in propertyDefinitions)
> {
> if (p.Id.Equals(id))
> return p;
> }
> return null;
> }
> 6. At this point I go into debug mode and look at the IPropertyDefinition p and see that Choices == null.
> See attachment for sample response.xml
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira