Project

General

Profile

« Previous | Next » 

Revision 9321

Added by Jing Tao over 8 years ago

Fixed a bug that a client can set the original member node to be null.

View differences:

D1NodeService.java
1748 1748
                        "different to the orginal one "+orgMeta.getOriginMemberNode().getValue());
1749 1749
	        }
1750 1750
	        
1751
	        if (orgMeta.getOriginMemberNode() != null && newMeta.getOriginMemberNode() == null ) {
1752
	            throw new InvalidRequest("4869", "The request is trying to modify an immutable field in the SystemMeta: the new system meta's orginal member node is null and it "+" is "+
1753
                        "different to the orginal one "+orgMeta.getOriginMemberNode().getValue());
1754
	        }
1755
	        
1751 1756
	        if(orgMeta.getSeriesId() != null && newMeta.getSeriesId() != null && !orgMeta.getSeriesId().equals(newMeta.getSeriesId())) {
1752 1757
                throw new InvalidRequest("4869", "The request is trying to modify an immutable field in the SystemMeta: the new system meta's series id  "+newMeta.getSeriesId().getValue()+" is "+
1753 1758
                        "different to the orginal one "+orgMeta.getSeriesId().getValue());

Also available in: Unified diff