An Indonesian youth who was just 14 when he was wrongfully jailed in an Australian prison for adults 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 been 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," his lawyer Sam Tierney, from Canberra firm Ken Cush and Associates, said. "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 appeal court 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 he was convicted, the federal government had a policy of not prosecuting Indonesian boat crew who were children, instead sending them home.
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, who is now a fisherman in Indonesia, said that when he was released from jail in 2012, after 878 days in detention, he told all his friends not to accept a job if it was not clear what they had to do.
He said was angry he had allowed himself to be cheated and that the Australian government had not believed his story.
"They believed my other friends' story. That's why they were sent back home, although we were of the same age."
Mr Yasmin said if he ever received compensation he would use it to renovate his mother's house.
"The fact that it is still standing is perhaps because we are still living inside it."