fix issue about read only mode warning undisappear about #4741
fix issue about read only mode warning undisappear about #4741

steven-zou/harbor,steven-zou/harbor,wy65701436/harbor,reasonerjt/harbor,reasonerjt/harbor,steven-zou/harbor,steven-zou/harbor,steven-zou/harbor,reasonerjt/harbor,wy65701436/harbor,wy65701436/harbor,wy65701436/harbor,steven-zou/harbor,wy65701436/harbor,wy65701436/harbor,reasonerjt/harbor,reasonerjt/harbor,reasonerjt/harbor