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

Internal Server Error creating a packaged mashups using invalid/outdated MACs #252

Open
aarranz opened this issue Nov 16, 2016 · 0 comments
Assignees
Milestone

Comments

@aarranz
Copy link
Member

aarranz commented Nov 16, 2016

Traceback:

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner
  39.             response = get_response(request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/commons/baseviews/resource.py" in __call__
  57.             response = getattr(self, METHOD_MAPPING[request_method])(request, *args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/commons/utils/http.py" in wrapper
  239.         return func(self, request, *args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/commons/utils/http.py" in wrapper
  281.             return func(self, request, *args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/commons/utils/transaction.py" in wrapped_func
  28.             res = func(*args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/platform/workspace/views.py" in create
  515.         resource = get_local_catalogue().publish(None, wgt_file, request.user, options, request)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/platform/core/catalogue_manager.py" in publish
  89.             added, resource = install_resource_to_user(user, file_contents=wgt_file, packaged=True, raise_conflicts=True)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/platform/localcatalogue/utils.py" in install_resource_to_user
  77.     resource = install_resource(downloaded_file, executor_user)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/platform/localcatalogue/utils.py" in install_resource
  67.         resource = add_packaged_resource(file_contents, executor_user, wgt_file=wgt_file)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/catalogue/utils.py" in add_packaged_resource
  210.     check_packaged_resource(wgt_file, resource_info)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/catalogue/utils.py" in check_packaged_resource
  187.     check_invalid_embedded_resources(wgt_file, resource_info)

File "/usr/local/lib/python2.7/dist-packages/wirecloud/catalogue/utils.py" in check_invalid_embedded_resources
  147.             raise InvalidContents('Invalid embedded file: %s' % embedded_resource['src'], details=e)

Exception Type: InvalidContents at /api/workspace/8944/publish
Exception Value: Invalid embedded file: macs/CoNWeT_web-browser_1.5.1.wgt

macs/CoNWeT_web-browser_1.5.1.wgt is an outdated MAC that was uploaded in a previous version of WireCloud. Newer versions of WireCloud won't let this version of the MAC to be uploaded.

This ticket is not about making WireCloud support creating packaged mashups using invalid/outdated MACs, but about making WireCloud return an adequate error code / message instead of the internal server error.

@aarranz aarranz added this to the Nov 2016 milestone Nov 17, 2016
@aarranz aarranz self-assigned this Nov 17, 2016
@aarranz aarranz modified the milestones: Dec 2016, Nov 2016 Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant