Skip to content

Cached files cause script failure #1

Closed
nroy opened this issue Nov 18, 2016 · 2 comments
Closed

Cached files cause script failure #1

nroy opened this issue Nov 18, 2016 · 2 comments

Comments

@nroy
Copy link

nroy commented Nov 18, 2016

After a first retrieval of a file via conditional GET, things work fine, the file is retrieved and cached, and xsltproc.sh works fine. After the file has been cached locally, the script exits without running the transform.

@ghost
Copy link

ghost commented Nov 19, 2016

You've described a feature or a bug depending on the command-line options. Can you exhibit a command line that misbehaves?

I'm guessing you've discovered a feature. If the resource is cached, and the -F option is included on the command line, the script fails silently by design:

$ $BIN_DIR/http_xsltproc.sh -F -o $resource_file $xsl_file $xml_location
$ echo $?
1

This is a feature. You can schedule the above script to run every hour (say) but force the script to short-circuit if there is no fresh resource. See the documented examples for details.

@nroy
Copy link
Author

nroy commented Nov 21, 2016

Ahh, OK, I wasn't understanding that failure mode, I thought -F would always force a new GET. I get it now.

@nroy nroy closed this as completed Nov 21, 2016
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant