MARC batch edit iframe can fail to load
Bug #1822376 reported by
Galen Charlton
This bug report is a duplicate of:
Bug #1862834: regex based url building that can match hostnames.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Medium
|
Galen Charlton |
Bug Description
The MARC Batch Edit Dojo UI can fail to load when embedded in the AngularJS staff client if the hostname of the Evergreen server starts with "eg".
Evergreen 3.1+ (most likely)
tags: | added: cataloging webstaffclient |
tags: | removed: webstaffclient |
tags: |
added: cat-batchedit removed: cataloging marc |
To post a comment you must log in.
Specifically, the following line in Open-ILS/ web/js/ ui/default/ staff/cat/ catalog/ app.js is at fault:
$scope. batchedit_ url = $location. absUrl( ).replace( /\/eg.* /, '/opac/ extras/ merge_template' );
A URL like https:/ /eg.example. org/eg/ staff/... will match that regex starting with the hostname.