Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
jio_mebibou
Commits
8c389cf1
Commit
8c389cf1
authored
Jul 18, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gidstorage returns now the error bad request when a gid is wrong
parent
4f3218ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
src/jio.storage/gidstorage.js
src/jio.storage/gidstorage.js
+12
-12
No files found.
src/jio.storage/gidstorage.js
View file @
8c389cf1
...
...
@@ -262,9 +262,9 @@
gid
=
gidFormat
(
doc
,
priv
.
constraints
);
if
(
gid
===
undefined
||
(
doc
.
_id
&&
gid
!==
doc
.
_id
))
{
return
that
.
error
({
"
status
"
:
40
9
,
"
statusText
"
:
"
Conflic
t
"
,
"
error
"
:
"
conflic
t
"
,
"
status
"
:
40
0
,
"
statusText
"
:
"
Bad Reques
t
"
,
"
error
"
:
"
bad_reques
t
"
,
"
message
"
:
"
Cannot
"
+
method
+
"
document
"
,
"
reason
"
:
"
metadata should respect constraints
"
});
...
...
@@ -340,9 +340,9 @@
gid_object
=
gidParse
(
doc
.
_id
,
priv
.
constraints
);
if
(
gid_object
===
undefined
)
{
return
that
.
error
({
"
status
"
:
40
9
,
"
statusText
"
:
"
Conflic
t
"
,
"
error
"
:
"
conflic
t
"
,
"
status
"
:
40
0
,
"
statusText
"
:
"
Bad Reques
t
"
,
"
error
"
:
"
bad_reques
t
"
,
"
message
"
:
"
Cannot put attachment
"
,
"
reason
"
:
"
metadata should respect constraints
"
});
...
...
@@ -390,9 +390,9 @@
gid_object
=
gidParse
(
command
.
cloneDoc
().
_id
,
priv
.
constraints
);
if
(
gid_object
===
undefined
)
{
return
that
.
error
({
"
status
"
:
40
9
,
"
statusText
"
:
"
Conflic
t
"
,
"
error
"
:
"
conflic
t
"
,
"
status
"
:
40
0
,
"
statusText
"
:
"
Bad Reques
t
"
,
"
error
"
:
"
bad_reques
t
"
,
"
message
"
:
"
Cannot get document
"
,
"
reason
"
:
"
metadata should respect constraints
"
});
...
...
@@ -482,9 +482,9 @@
gid_object
=
gidParse
(
doc
.
_id
,
priv
.
constraints
);
if
(
gid_object
===
undefined
)
{
return
that
.
error
({
"
status
"
:
40
9
,
"
statusText
"
:
"
Conflic
t
"
,
"
error
"
:
"
conflic
t
"
,
"
status
"
:
40
0
,
"
statusText
"
:
"
Bad Reques
t
"
,
"
error
"
:
"
bad_reques
t
"
,
"
message
"
:
"
Cannot remove document
"
,
"
reason
"
:
"
metadata should respect constraints
"
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment