Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xnat-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dhcp
xnat-web
Commits
e5d62c38
Commit
e5d62c38
authored
8 years ago
by
Mike McKay
Browse files
Options
Downloads
Patches
Plain Diff
Hacky fix so that put REST calls can get the project item.
parent
92160b2a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/nrg/xnat/restlet/resources/ProjectResource.java
+6
-0
6 additions, 0 deletions
.../java/org/nrg/xnat/restlet/resources/ProjectResource.java
with
6 additions
and
0 deletions
src/main/java/org/nrg/xnat/restlet/resources/ProjectResource.java
+
6
−
0
View file @
e5d62c38
...
...
@@ -132,6 +132,12 @@ public class ProjectResource extends ItemResource {
if
(
project
==
null
||
Permissions
.
canEdit
(
user
,
project
))
{
XFTItem
item
=
loadItem
(
"xnat:projectData"
,
true
);
//Hacky fix. Something changed so that loadItem no longer produces null when handlePut expects it to.
// This fix nulls the item to allow the project item to be stored in the item object.
if
(
item
!=
null
&&
item
.
toString
().
equals
(
"<XFTItem name=\"xnat:projectData\"/>\r\n"
)){
item
=
null
;
}
if
(
item
==
null
)
{
String
xsiType
=
getQueryVariable
(
"xsiType"
);
if
(
xsiType
!=
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment