Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imageInputStream is null, giving file size of .LBL instead of .IMG #3

Open
jordanpadams opened this issue Mar 14, 2020 · 0 comments
Open

Comments

@jordanpadams
Copy link
Member

jordanpadams commented Mar 14, 2020

Describe the bug
When running generate on a .LBL file in debug mode, from FileSize.java see this line:

Debugger.debug("file="+this.file+" imageInputStream="+this.imageInputStream);

(see internal ticket for exact location)

that the imageInputStream is null. This results in $generate.file_size returning the size of the .LBL file instead of its corresponding .IMG file.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.jpl.nasa.gov/PDSIMG/pdsimg-mi
  2. Clone the repo
  3. Checkout branch nsyt-ida
  4. Install generate 0.15.0 or 0.18.2
  5. From the repo root, run
generate -d -t schemas/juno/sample_products/juno_jnc_template.xml -p schemas/juno/sample_products/JNCE_2011238_00A00002_V01.LBL

Expected behavior
It is expected that the imageInputStream not be null so that the file size of the .IMG file be returned.

Version of Software Used
0.15.0 and 0.18.2

Screenshots
See internal ticket

Desktop (please complete the following information):

  • OS: macOS 10.14.6 Mojave

@decesare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ToDo
Development

No branches or pull requests

3 participants