Its not a bug. The org's admin have to config in Org Setting -> Utility Services -> Printing to set the certain print layout to include legend. After configuring is done, the legend is able to be print out.
解决办法
Create a web application that has a print widget or option, and print the map from the application.