Proxying internationalised URLs in EZproxy config.txt (proposed new warning)
Stuart Yeates <[email protected]> Thu, 28 Nov 2019 22:12:05 +0000
| Newsgroups | gmane.education.ezproxy |
|---|---|
| Message-ID | <MEAPR01MB52074C257DE8B6D9B71D5617BC470@MEAPR01MB5207.ausprd01.prod.outlook.com> |
In New Zealand have an official language (te reo Te Reo Māori) which includes non-ASCII characters. Our national TLD .nz has allowed these characters to appear in domain names for almost ten years. I recently tried to add one of these to EZproxy and it didn't work. Unfortunately it's non-workingness was silent: EZproxy silently truncated the line at the 'bad' character but still entered the truncated hostname into it's database. The real fix for this is to use punycode to escape the non-ASCII characters, but it's hard to know that this is the fix unless (a) you know things are broken and (b) that punycode exists. I would like to to suggest a new error message to handle this situation: "2019-11-29 10:54:32 Truncated at 'viewer.wair' due to non-ASCII character. If this is an internationalized domain name, use punycode." Below is the example I had. cheers stuart Old config.txt: Title VUW Library Rosetta viewer (Special order-dependent stanza) URL http://vuwunicolibevp1.ods.vuw.ac.nz HJ https://vuwunicolibevp1.ods.vuw.ac.nz HJ http://viewer.waireto.victoria.ac.nz HJ https://viewer.waireto.victoria.ac.nz HJ http://viewer.wairētō.victoria.ac.nz HJ https://viewer.wairētō.victoria.ac.nz What appeared in /status : HJ viewer.wair:443 HJ viewer.wair:80 HJ viewer.waireto.victoria.ac.nz:443 HJ viewer.waireto.victoria.ac.nz:80 HJ vuwunicolibevp1.ods.vuw.ac.nz:443 H vuwunicolibevp1.ods.vuw.ac.nz:80 Fixed config.txt: Title VUW Library Rosetta viewer (Special order-dependent stanza) URL http://vuwunicolibevp1.ods.vuw.ac.nz HJ https://vuwunicolibevp1.ods.vuw.ac.nz HJ http://viewer.waireto.victoria.ac.nz HJ https://viewer.waireto.victoria.ac.nz HJ http://viewer.xn--wairt-lza12b.victoria.ac.nz HJ https://viewer.xn--wairt-lza12b.victoria.ac.nz What appears in /status: HJ viewer.xn--wairt-lza12b.victoria.ac.nz:443 HJ viewer.xn--wairt-lza12b.victoria.ac.nz:80 HJ viewer.waireto.victoria.ac.nz:443 HJ viewer.waireto.victoria.ac.nz:80 HJ vuwunicolibevp1.ods.vuw.ac.nz:443 H vuwunicolibevp1.ods.vuw.ac.nz:80 Ngā mihi stuart -- Stuart Yeates Library Technology Specialist Victoria University of Wellington [email protected] ******************************************************************** If you wish to stop receiving messages from EZPROXY-L or otherwise amend your preferences, you can do so <a href="https://www.oclc.org/forms/internet-subscription.en.html">here</a>. Or email [email protected] including the relevant text below in the body of the email: • To unsubscribe: "unsubscribe EZPROXY-L" • To receive EZPROXY-L in digest form: "set EZPROXY-L digest" • To set your options to no mail: "set EZPROXY-L nomail" • To receive these messages in the future "set EZPROXY-L mail" To contact the list owners directly please send your message to [email protected]. If you unsubscribe from EZPROXY-L, you will no longer be able to participate in any of its features, including the public forum. To unsubscribe from all OCLC marketing email communications (including all OCLC listervs, OCLC Connect emails, OCLC event notifications, product/service/cooperative updates and newsletters), please email us at [email protected].