[
https://issues.apache.org/jira/browse/SOLR-6959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14273133#comment-14273133
]
Alexandre Rafalovitch commented on SOLR-6959:
---------------------------------------------
Looks good. Except this now uncovers a little wrinkle:
{quote}
$ java -Dc=techproducts -jar post.jar hd.xml
SimplePostTool version 1.5
Posting files to \[base] url http://localhost:8983/solr/techproducts/update
using content-type application/xml...
POSTing file hd.xml to \[base]
{quote}
vs.
{quote}
$ java -Dc=techproducts -Dauto -jar post.jar hd.xml
SimplePostTool version 1.5
Posting files to \[base] url http://localhost:8983/solr/techproducts/update...
Entering auto mode. File endings considered are
xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log
POSTing file hd.xml (text/xml) to \[base]
{quote}
Is there a reason we are using different content types for the same XML file
with and without *-Dauto*?
> SimplePostTool reports incorrect base url for PDFs
> --------------------------------------------------
>
> Key: SOLR-6959
> URL: https://issues.apache.org/jira/browse/SOLR-6959
> Project: Solr
> Issue Type: Bug
> Components: scripts and tools
> Affects Versions: 4.10.3
> Reporter: Alexandre Rafalovitch
> Assignee: Erik Hatcher
> Priority: Minor
> Labels: tools
> Fix For: 5.0, Trunk
>
>
> {quote}
> $ java -Dc=techproducts -Dauto -Dcommit=no -jar post.jar solr-word.pdf
> SimplePostTool version 1.5
> Posting files to base url http://localhost:8983/solr/techproducts/update..
> {quote}
> This command will *not* post to */update*, it will post to */update/extract*.
> This should be reported correspondingly.
> From the server log:
> {quote}
> 127.0.0.1 - - \[11/Jan/2015:17:17:10 +0000] "POST
> /solr/techproducts/update/extract?resource.name=....
> {quote}
> It would make sense for that message to be after the auto-mode determination
> just before the actual POST.
> Also, what's with two dots after the url? If it is _etc_, it should probably
> be three dots.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]