Bug 3714 - unexpected result when using the Public Galley Identifier option in conjunction with PDF
unexpected result when using the Public Galley Identifier option in conjuncti...
Status: RESOLVED INVALID
Product: OJS
Classification: Unclassified
Component: Submissions and Publishing
2.2.2
PC Mac OS X 10.0
: P1 normal
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-28 11:10 PDT by James MacGregor
Modified: 2008-07-28 11:22 PDT (History)
0 users

See Also:
Version Reported In:
Also Affects:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James MacGregor 2008-07-28 11:10:54 PDT
Using the Public Galley Identifier option in conjunction with PDF will rename the *link* that OJS uses correctly, but does not actually rename the PDF file as it does with HTML. 

If I upload an HTML file and enter testArticle as the Public Galley Identifier, the link to the article from the ToC becomes 

/index.php/tj2/article/view/article1/testArticle

and the resulting file will save as testArticle.html. However, if I do the same for a PDF file, the URL will look the same as above but the PDF that pops up is actually still called something like 1-7-1-PB.pdf rather than testArticle.pdf.
Comment 1 Alec Smecher 2008-07-28 11:16:04 PDT
This is actually expected behavior -- HTML files don't have download filenames specified in the headers, so they default to the last part of the URL; PDFs, however, do have filenames specified, so you get the OJS ##-##-##-##.pdf filename.
Comment 2 James MacGregor 2008-07-28 11:22:31 PDT
(In reply to comment #1)
> This is actually expected behavior -- HTML files don't have download filenames
> specified in the headers, so they default to the last part of the URL; PDFs,
> however, do have filenames specified, so you get the OJS ##-##-##-##.pdf
> filename.
> 

Thanks for the clarification, Alec. I think there is a larger issue at hand, which is fairly well captured by this thread: http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=3379. Essentially, users want to be able to control the downloaded galley file names, as hassle-free as possible. I'll enter a new bug report/feature request.