Redirect from http to https breaks RESTful API: "Document is empty"
- Product: Aleph
- Product Version: 20, 21, 22, 23
- Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care
Description
We have found that the change to redirect http to https on our aleph2 server has affected the RESTful API running on port 1891. We are getting errors such as:
error on line 1 at column 1: Document is empty
what service runs on port 1891? And how do we solve this problem?
Resolution
jboss (Tomcat, in v22-up) runs on the 189n port.
The $alephe_root/jboss_conf/main.properties was copied from the aleph1 server and had this line:
xservice.server.name=aleph1.library.xxx.edu
Changing it to
xservice.server.name=aleph2.library.xxx.edu
and restarting the Web Services server (util w/3/7/9) and apache corrected the problem.
- Article last edited: 3-Jan-2018