Project
YouTrackSharp
Priority
Normal
Type
Bug
State
Fixed
Assignee
Hadi Hariri
Subsystem
No subsystem
Fix versions
No Fix versions
Affected versions
No Affected versions
Fixed in build
Next Build
  • Created by   Patrick van der Velde
    22 months ago (06 Aug 2011 07:33)
  • Updated by   Hadi Hariri
    21 months ago (06 Sep 2011 06:57)
 
YTSRP-9 GetAllIssuesForProject throws JsonFx.Serialization.DeserializationException
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
Trying this code:
var connection = new Connection(host:"xxxxxx.myjetbrains.com", path:"youtrack");
connection.Authenticate("User", "Password");

var issueManagement = new IssueManagement(connection);
var issues = issueManagement.GetAllIssuesForProject("projectId");


The message is: Unable to find a suitable constructor for instantiating the target Type. (YouTrackSharp.Issues.Issue[])
There is one issue in the project so I would expect it would find that issue.

This happens both in 1.0.11 and in the current master source from GitHub.
Comments (4)
 
History
 
Linked Issues (?)
 
TeamCity Changes (1)
 
Hadi Hariri (Admin)
  Hadi Hariri (Admin)
06 Aug 2011 23:40
22 months ago
Happens when only one issue is returned.
Related Changes
State
SubmittedOpen
Assignee
UnassignedHadi Hariri
Hadi Hariri (Admin)
  Hadi Hariri (Admin)
07 Aug 2011 00:31
22 months ago
I've fixed this temporarily for now. It's not ideal but helps get around the problem. Fix requires more work.
Patrick van der Velde
  Patrick van der Velde
07 Aug 2011 02:18
22 months ago
The exception doesn't happen anymore but now the Issue object has all it's fields set to NULL. If I run the above code on a YouTrack with more than one issue then the issues come back correctly. If there is only one issue then I get one issue back but that issue has no information in it.
Hadi Hariri
  Hadi Hariri
06 Sep 2011 06:33
21 months ago
This is an issue withYouTrack. I've talked to the dev and they are going to fix it. I'm going to change this to make another workaround for now but there's no easy fix for this.