The Latest on the influx of migrants into Europe (all times local):

2:30 p.m.

The U.N.'s refugee agency is urging the European Union not to abandon its system for sharing refugees when any member country is overwhelmed by migrant arrivals.

UNHCR Assistant High Commissioner for Protection Volker Turk said Thursday that refugee relocation "is absolutely crucial."

Frontline countries Greece and Italy were unable to cope with the arrival of hundreds of thousands of migrants in 2015.

When voluntary relocation of refugees failed, a mandatory quota scheme was introduced, but some countries refused to take their share, resulting in legal challenges.

Attempts to reform the EU's asylum system are blocked over the issue.

Turk also urged EU countries to bring in more refugees from outside Europe so they don't make dangerous journeys in search of sanctuary, saying that "resettlement is a life-saving act for many people."

___

12:10 p.m.

The European Union's top court says that asylum-seekers in the bloc shouldn't be psychologically tested on their sexual orientation as part of the procedure to grant them protection.

The EU Court of Justice ruled Thursday that such a psychological report "is disproportionate" in relation to the objective.

The court made the ruling after a Nigerian sought asylum in Hungary, arguing he faced persecution at home based on his homosexuality. Hungary rejected the application based on a psychological report that couldn't confirm his homosexuality.

The Nigerian appealed and the Hungarian court sought the advice of the EU's top court.