Manning was convicted of espionage, imprisoned, and put into solitary confinement under the legal authority of UCMJ. Unfortunately, this is all legal, backed by the popular view that sentencing should be punitive and serve as a deterrent. Think of all the people in solitary confinement who, unlike Manning, were never in the public eye.