After connecting to a Redmine 2.03 instance, I get an error that says "Input string was not in correct format".
It looks like the ATOM feed must have changed. (Although I looked at the Redmine code and couldn't see the change.) Notice that there is no NumericId that the code is looking for. And the project id is not even in the <id> tag.
The id is in the JSON and XML feeds. So it seems like the app probably needs to be changed to use the XML feed. Or am I missing a configuration setting or something?
<entry><title>Ibidem Mobile Client - Project: Ibidem Mobile Client</title><linkhref="http://ec2-50-XXX-XXX-30.us-west-2.compute.amazonaws.com/redmine/projects/ibidemobile"rel="alternate"/><id>http://ec2-50-XXX-XXX-30.us-west-2.compute.amazonaws.com/redmine/projects/ibidemobile</id><updated>2012-09-06T15:38:33Z</updated><contenttype="html"></content></entry>
public List<Issue> GetIssues(int projectId)
{
if (_cache.GetIssues(projectId) != null)
{
return _cache.GetIssues(projectId);
}
XhtmlPage page = new XhtmlPage(this.httpHelper.GetWebRequest(this.ConstructUri(String.Format(IssueListRelativeUri, projectId))));
List<Issue> issues = new List<Issue>();
foreach (AtomEntry entry in AtomParser.ParseFeed(page.XmlDocument))
{
issues.Add(new Issue
{
[b] Id = entry.NumericId,[/b]
Subject = entry.Title
});
}
_cache.SetIssues(projectId, issues);
return issues;
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After connecting to a Redmine 2.03 instance, I get an error that says "Input string was not in correct format".
It looks like the ATOM feed must have changed. (Although I looked at the Redmine code and couldn't see the change.) Notice that there is no NumericId that the code is looking for. And the project id is not even in the <id> tag.
The id is in the JSON and XML feeds. So it seems like the app probably needs to be changed to use the XML feed. Or am I missing a configuration setting or something?
in app/models/project.rb change
validates_format_of :identifier, :with => /^(?!\d+$)*$/, :if => Proc.new { |p| p.identifier_changed? }
by
validates_format_of :identifier, :with => //, :if => Proc.new { |p| p.identifier_changed? }
Its to a new install without project
the first project must be like 10000001 and autoincrementation on.
Im french sorry for my english
else use rest api and modifiy code of redmine client