Revision 6645
Added by ben leinfelder about 13 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
179 | 179 |
boolean allowed = false; |
180 | 180 |
String username = Constants.SUBJECT_PUBLIC; |
181 | 181 |
String[] groupnames = null; |
182 |
if (session != null) { |
|
182 |
if (session == null) { |
|
183 |
throw new InvalidToken("1330", "No session has been provided"); |
|
184 |
} else { |
|
183 | 185 |
username = session.getSubject().getValue(); |
184 | 186 |
if (session.getSubjectInfo() != null) { |
185 | 187 |
List<Group> groupList = session.getSubjectInfo().getGroupList(); |
... | ... | |
268 | 270 |
String localId = null; |
269 | 271 |
boolean allowed = false; |
270 | 272 |
boolean isScienceMetadata = false; |
273 |
|
|
274 |
if (session == null) { |
|
275 |
throw new InvalidToken("1210", "No session has been provided"); |
|
276 |
} |
|
271 | 277 |
Subject subject = session.getSubject(); |
272 | 278 |
|
273 | 279 |
// do we have a valid pid? |
Also available in: Unified diff
throw InvalidToken when there is no session (certificate) provided in update() and delete() methods.