An Indonesian youth who was just 14 when he was wrongfully jailed in an adult Australian prison has won the latest court battle in his fight to clear his name.
Ali Yasmin, also known as Ali Jasmin, spent two years in Western Australia's maximum security prison in Albany after being convicted as an adult on people smuggling charges in 2010.
This was despite the fact the Office of the Commonwealth Director of Public Prosecutions had a legalised copy of his birth certificate that stated he was still a child. 
Instead the court relied on a wrist X-ray to determine his age - a method that has now been completely discredited.
The full bench of the Federal Court of Australia on Wednesday ruled Attorney-General George Brandis has a legal duty to make a decision on Mr Yasmin's request to have his case referred to the West Australian Court of Appeal. This request has been outstanding for more than a year.
"Mr Yasmin thanks the court for considering his matter," said his lawyer Sam Tierney, from Canberra firm Ken Cush and Associates. "He is pleased that he now has an opportunity to continue the fight to clear his name."
The law firm hopes that if the case is referred to the West Australian Court of Appeal his conviction will be quashed, as he was a child at the time.
This could pave the way for him to sue for wrongful imprisonment.
At the time the Federal Government had a policy of not prosecuting Indonesian boat crew who were children and sending them home.
Mr Yasmin, who is now a fisherman in Indonesia, told Fairfax Media the hardest time in prison in Albany had been during lockdown. "When the night came down, they locked us from 7pm to 7am. Going through every night, staying in a locked room with a man I couldn't speak to, although I wanted to, just because I couldn't speak the language."
He said the jail was freezing, he didn't like the white man's food, there were sometimes fights and he had to strip whenever he was transferred between jail and court.
"Four times. It's embarrassing. Also it wasn't nice to travel from Albany to Perth for the trial, it took six hours. Nothing was nice when the arms and feet were chained plus I have to be naked four times."
Mr Yasmin grew up in Bala Uring, a small village on the Indonesian island of Flores, where his family bought fish and sold them at the market.
He was 13 when he was offered a job loading food on a boat headed for Java in 2009.
He said when the boat was close to Pelabuhan Ratu in West Java, two small boats carrying lots of people came on board. "I didn't know where we were heading, I didn't know anything."
The boat Mr Yasmin was on was apprehended in Australian waters. It was carrying 55 Afghans seeking asylum in Australia.
Mr Yasmin said that when he was released from jail in 2012, after 878 days in detention, he told all his friends from his village not to accept a job if it was not clear what they had to do.
"It is enough that this experience only happened to me. There should not be other boys [who] experience what I have," he said.
He said was initially angry with himself for allowing himself to be cheated and with the Australian government for not believing his story.
"They believed my other friends' story. That's why they were sent back home, although we were of the same age."
However he said he was no longer angry after being interviewed by "nice" Australian journalists, especially former Channel Ten journalist Hamish Macdonald, who came to his village.
"So I thought there are good and bad people in Australia. So I'm not angry anymore."
Mr Yasmin said if he ever received compensation he would use it to renovate his mother's "weathered' house. "The fact that it is still standing, is perhaps because we are still living inside it."
A 2012 Australian Human Rights Commission Inquiry called An age of Uncertainty found there were many young Indonesians whose ages were incorrectly assessed and who consequently experienced significant breaches of their rights.
It said there were 15 cases where young Indonesians were convicted but it was later established by Australian authorities that there was doubt about whether they were adults at the time of their apprehension.
The inquiry found the Australian Federal Police were aware of material that called into question reliance on wrist X-ray analysis but continued to use the procedure as a means of age assessment.
Follow Jewel Topsfield on Facebook