Revision 6530
Added by ben leinfelder over 12 years ago
MNodeService.java | ||
---|---|---|
349 | 349 |
public Identifier create(Session session, Identifier pid, InputStream object, SystemMetadata sysmeta) throws InvalidToken, ServiceFailure, NotAuthorized, |
350 | 350 |
IdentifierNotUnique, UnsupportedType, InsufficientResources, InvalidSystemMetadata, NotImplemented, InvalidRequest { |
351 | 351 |
|
352 |
// check for null session |
|
353 |
if (session == null) { |
|
354 |
throw new InvalidToken("1110", "Session is required to WRITE to the Node."); |
|
355 |
} |
|
352 | 356 |
// set the submitter to match the certificate |
353 | 357 |
sysmeta.setSubmitter(session.getSubject()); |
354 | 358 |
// set the originating node |
Also available in: Unified diff
throw InvalidToken when the Session parameter is null for create()
https://redmine.dataone.org/issues/1850