I see that in alfresco community version 2.1.0 there is the following bug: putContent method in the org.alfresco.webservice.util.ContentUtils class fails to upload *.java, *.txt, *.xml/html files ok with *.doc,*.pdf, *.jpg, *.zip.
It is fixed only for alfresco 2.2.0 Enterprise version? If yes, there's a way to adjust alfresco community 2.1.0 too?
We typically merge in the bug fixes into HEAD (which is currently 2.9). So this is the branch where it will be appearing (if not already - not sure). If you are on the 2.1 community release, then your best course will be to manually introduce the changes back to the release you are using.