I am on OJS 3.1.1-4 . When someone goes to register an institutional subscription at /user/payPurchaseSubscription/institutional , there isn’t any way to enter an IP address. Entering any IP address results in the error message “The selected subscription type requires a domain and/or an IP range for subscription authentication.” Then, the person has to put in a domain in order to register the subscription. If they put in both a domain and an IP address, only the domain will be saved with the subscription info.
The most closely related to Problems with domain and ip ranges after activating Manual Fee Payment in OJS 126.96.36.199 – wrong error message , but different. That other one was about edit subscription. My issue is about registering a subscription.
Here are steps to recreate:
- On a journal that is set up for subscriptions (the one I am looking at is set up for manual payments)
- Log in as a user account that wants to subscribe to the journal (ie. not someone managing the journal), and go to /user/payPurchaseSubscription/institutional which should be a subscription screen
- Enter a correct IP address.
- The form rejects and gives this error message: “The selected subscription type requires a domain and/or an IP range for subscription authentication.”
It is possible to add both the domain and the IP address, but in that case, only the domain will save.
Here’s the error message and the IP I filled (any IP address or range even correctly formatted has this problem).
If the person trying to subscribe enters both an IP and a domain, then only the domain will save with the subscription. After the domain is added, the form will save the subscription, but it will only save the domain. If there is both a domain and an IP address, the form will not save the IP address. So, the person may think they have registered with a domain and an IP range, but they really only registered with a domain.
Is this fixed in any later versions? I am not seeing much activity on https://github.com/pkp/ojs/commits/master/controllers/grid/subscriptions/InstitutionalSubscriptionForm.inc.php