opening repub state 4 items fails if too many

Bug #281373 reported by danh
2
Affects Status Importance Assigned to Milestone
Microfilm
New
Undecided
Unassigned

Bug Description

Angela W reports that if there are too many repub state 4 items
in the open book factory, when you try to open them in
metamgr you get a complaint that the URL is too long.
(In her case, there were 787 such items.)

She's right (i.e., i confirmed it), so i plan to test the number
of items and have the OBF make multiple links if it is
greater than some constant (which we'll try to tune
somehow). {The real deal is the length of the URL,
so an ideal solution would estimate this somehow,
but it's easier just to do something crude like open
only the first 200 in the metamgr, or something like
that.}

Anybody with a contrary solution please post it.

Revision history for this message
Hank Bromley (hank-archive) wrote :

Here's an alternative. (I have no strong sense as to whether it's better or worse than the initial proposal - just offering it for consideration.)

The redrow script limits the length of metamgr query urls by using a POST request rather than GET when the query contains more than 200 identifiers. Here's the relevant code:

  if ($count<200) {
    fprintf($fh, "<a href=\"http://www.us.archive.org/metamgr?&srt=updated&ord=desc&w_identifier=".$identifiers."&fs_identifier=on&fs_mediatype=on&fs_format=on&fs_imagecount=on&fs_scandate=on&fs_scanner=on&fs_scancenter=on&fs_operator=on&fs_curatestate=on&fs_curatenote=on&fs_size=on&off=0&lim=25\">metamgr</a>");
  } else {
    fprintf($fh, '<form name="dbqForm" method="post" action="/metamgr"><input class="filterBox" type="hidden" name="w_identifier" value="'.$identifiers.'"><input class="filterBtn" type="submit" name="f" value="metamgr"/></form>');
  }

Revision history for this message
danh (danh-archive) wrote :

Angela W discovered that the last batch of files doesn't completely show up.
So this isn't quite fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.