Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
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
Mukul
jio
Commits
34875bba
Commit
34875bba
authored
Oct 18, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
davstorage: Wrong error message given when attachment is missing - fixed
parent
3e39ba25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/jio.storage/davstorage.js
src/jio.storage/davstorage.js
+3
-3
No files found.
src/jio.storage/davstorage.js
View file @
34875bba
...
@@ -590,7 +590,7 @@
...
@@ -590,7 +590,7 @@
error_message
:
"
DavStorage, unable to get attachment.
"
,
error_message
:
"
DavStorage, unable to get attachment.
"
,
percentage
:
[
0
,
30
],
percentage
:
[
0
,
30
],
notify_message
:
"
Getting metedata
"
,
notify_message
:
"
Getting metedata
"
,
"
Not Found
"
:
"
missing document
"
,
"
404
"
:
"
missing document
"
,
// Not Found
notifyProgress
:
function
(
e
)
{
notifyProgress
:
function
(
e
)
{
command
.
notify
({
command
.
notify
({
"
method
"
:
"
getAttachment
"
,
"
method
"
:
"
getAttachment
"
,
...
@@ -605,13 +605,13 @@
...
@@ -605,13 +605,13 @@
getAttachment
:
function
(
e
)
{
getAttachment
:
function
(
e
)
{
var
attachment
=
e
.
target
.
response
.
_attachments
&&
var
attachment
=
e
.
target
.
response
.
_attachments
&&
e
.
target
.
response
.
_attachments
[
param
.
_attachment
];
e
.
target
.
response
.
_attachments
[
param
.
_attachment
];
delete
o
[
"
404
"
];
if
(
typeof
attachment
!==
'
object
'
||
attachment
===
null
)
{
if
(
typeof
attachment
!==
'
object
'
||
attachment
===
null
)
{
throw
{
"
target
"
:
{
throw
{
"
target
"
:
{
"
status
"
:
404
,
"
status
"
:
404
,
"
statusText
"
:
"
missing attachment
"
"
statusText
"
:
"
missing attachment
"
}};
}};
}
}
delete
o
[
"
Not Found
"
];
o
.
type
=
attachment
.
content_type
||
"
application/octet-stream
"
;
o
.
type
=
attachment
.
content_type
||
"
application/octet-stream
"
;
o
.
notify_message
=
"
Retrieving attachment
"
;
o
.
notify_message
=
"
Retrieving attachment
"
;
o
.
percentage
=
[
30
,
100
];
o
.
percentage
=
[
30
,
100
];
...
@@ -627,7 +627,7 @@
...
@@ -627,7 +627,7 @@
reject
:
function
(
e
)
{
reject
:
function
(
e
)
{
command
.
reject
(
command
.
reject
(
e
.
target
.
status
,
e
.
target
.
status
,
o
[
e
.
target
.
status
Text
]
||
e
.
target
.
statusText
,
o
[
e
.
target
.
status
]
||
e
.
target
.
statusText
,
o
.
error_message
o
.
error_message
);
);
}
}
...
...
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