sword fails to pass test on Centos 6.5 and above. #370

Open
jiadiyao opened this Issue Dec 17, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@jiadiyao
Contributor

jiadiyao commented Dec 17, 2015

Sword test fail (/opt/eprints3/tests/84_sword.pl)
Server rejects with 415 Unsupported Media Type before the file transfer.

To get more info on the issue, used curl to "PUT":
[eprints@localhost eprints3]$ curl -v -H "Content-Type: application/atom+xml;" -X PUT --data "@tmp.xml" -u admin:admin http://test3315.local/id/eprint/350


About to connect() to test3315.local port 80 (#0)
Trying 127.0.0.1... connected
Connected to test3315.local (127.0.0.1) port 80 (#0)
Server auth using Basic with user 'admin'
PUT /id/eprint/350 HTTP/1.1
Authorization: Basic YWRtaW46YWRtaW4=
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Host: test3315.local
Accept: /
Content-Type: application/atom+xml;
Content-Length: 0
HTTP/1.1 415 Unsupported Media Type
Date: Wed, 16 Dec 2015 14:19:59 GMT
Server: Apache/2.2.15 (CentOS)
Content-Length: 343
Connection: close
Content-Type: text/html; charset=iso-8859-1

<title>415 Unsupported Media Type</title>

Unsupported Media Type

The supplied request data is not in a format acceptable for processing by this resource.

Apache/2.2.15 (CentOS) Server at test3315.local Port 80

Closing connection #0


Working correctly on Ubuntu:
Ubuntu 12 + apache 2.2
Ubuntu 14 + apache 2.4

These do NOT work:
Centos 6.5 + apache 2.2
Centos 7 + apache 2.4

Also checked :
/etc/mime.types in both ubuntu and centos contains definition for application/atom+xml

jiadiyao added a commit that referenced this issue Dec 17, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment