Hungary jails 10 migrants for up to three years for an attempt to cross its border after riots broke out at crossing. .