There is no one by the name York on the roster of the 50th Georgia Infantry.
I've worked on identifying dead buried at Oakwood. It is a daunting task as the records are quite mangled and it takes a considerable amount of detective work to discover the truth.
It appears that his burial has been authenticated:
http://www.findagrave.com/cgi-bin/fg.cgi?page=cr&CRid=51498
http://www.findagrave.com/cgi-bin/fg.cgi?page=gsr&GSiman=1&GScid=51498&GSfn=John&GSln=York
.......
John B. York, Private, Company E, 24th Georgia Infantry, enlisted September 28, 1862 at Clayton, Ga. for the war,
admitted Chimborazo Hospital, Richmond, Va. February 16, 1863, Continued fever/Chronic Diarrhoea, died March 7, 1863,
born in Raburn County, Ga., his widow Sarah York, filed claim for settlement of his accounts from Raburn County
M266: Compiled Service Records of Confederate Soldiers Who Served in Organizations from the State of Georgia