Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2489

Verification tool fail to verify import with AttributeError

    Details

      Description

      After imported resources to http://localhost:8686/f4/rest that are exported from different context http://localhost:8080/fcrepo/rest, the verification tool (from master branch as of 05/24/2017) throws error “AttributeError: 'FedoraResource' object has no attribute 'ldp_type’”.

      Here is the command and configuration used for import verify:
      $ fcrepo-verify -l 1b-import-log.txt -g DEBUG -v ./importexport.yml

      ./importexport.yml:
      mode: import
      predicates: http://www.w3.org/ns/ldp#contains
      resource: http://localhost:8686/f4/rest
      source: http://localhost:8080/fcrepo/rest
      dir: /Users/lsitu/Documents/Fedora_Import_Export/data_1b
      binaries: true
      rdfLang: text/turtle

      Error messages:
      Traceback (most recent call last):
        File "/Library/Frameworks/Python.framework/Versions/3.6/bin/fcrepo-verify", line 11, in <module>
          load_entry_point('fcrepo-verify===0.2.0-SNAPSHOT', 'console_scripts', 'fcrepo-verify')()
        File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 722, in __call__
          return self.main(*args, **kwargs)
        File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 697, in main
          rv = self.invoke(ctx)
        File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 895, in invoke
          return ctx.invoke(self.callback, **ctx.params)
        File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 535, in invoke
          return callback(*args, **kwargs)
        File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fcrepo_verify-0.2.0_SNAPSHOT-py3.6.egg/fcrepo_verify/cli.py", line 58, in main
          verifier.execute()
        File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fcrepo_verify-0.2.0_SNAPSHOT-py3.6.egg/fcrepo_verify/verifier.py", line 110, in execute
          loggers.file_only)
        File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fcrepo_verify-0.2.0_SNAPSHOT-py3.6.egg/fcrepo_verify/resources.py", line 48, in __init__
          if self.is_binary():
        File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/fcrepo_verify-0.2.0_SNAPSHOT-py3.6.egg/fcrepo_verify/resources.py", line 75, in is_binary
          return self.ldp_type == LDP_NON_RDF_SOURCE
      AttributeError: 'FedoraResource' object has no attribute 'ldp_type'

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                westgard Joshua Westgard
                Reporter:
                lsitu Longshou Situ
                Reviewer:
                Danny Bernstein
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: