job000476

norman_morse (Norman Morse)
Norman Morse created this job , modified by Perforce maintenance
Open
Client.GetResolvedFiles is missing version number of resolved files.

They always come back zero.  I’ve traced it down to the FromResolvedCmdTaggedOutput function in FileResolveRecord.cs.  In that function there are several int parsing commands.  Such as:

int.TryParse(obj["startFromRev"], out startRev);

Unfortunately  startToRev, startFromRev, endToRev, and endFromRev all have a # character in them which means that the parsing fails.  In each case you can simply trim that out that character which fixes the issue:

int.TryParse(commandResult["startFromRev"].Trim('#'), out startRev);
  • Details
  • Comments -
Status
Open
Project
perforce-software-p4api-net
Severity
B
Reported By
Norman Morse
Reported Date
Modified By
Perforce maintenance
Modified Date
Owned By
norman_morse
Type
Bug