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

GMN exception when using updateSystemMetadata() to change obsoletes to an object that is already in an obsolescence chain #28

Open
rogerdahl opened this issue Sep 10, 2019 · 0 comments

Comments

@rogerdahl
Copy link
Collaborator

View exception: 
Calling view: func_name="get_meta", method="GET", args="('10.5072_rwstg1k34n_2019723204918',)", kwargs="{'allowed_method_list': ['GET']}", url="/v2/meta/10.5072_rwstg1k34n_2019723204918"
Session subjects: CN=urn:node:mnTestRW,DC=dataone,DC=org, authenticatedUser, public
Calling view: func_name="get_meta", method="GET", args="('10.0309_rwstg1k34u_2019810194555',)", kwargs="{'allowed_method_list': ['GET']}", url="/v2/meta/10.0309_rwstg1k34u_2019810194555"
Session subjects: CN=urn:node:mnTestRW,DC=dataone,DC=org, authenticatedUser, public
Calling view: func_name="put_meta", method="PUT", args="()", kwargs="{'allowed_method_list': ['PUT']}", url="/v2/meta"
Session subjects: CN=urn:node:mnTestRW,DC=dataone,DC=org, authenticatedUser, public
Internal exception:
  Name: IntegrityError
  Value: duplicate key value violates unique constraint "app_scienceobject_obsoleted_by_id_key"
  DETAIL:  Key (obsoleted_by_id)=(269) already exists.
  Args: <no args>
  TraceInfo:
    base.py(113)
    contextlib.py(74)
    external.py(388)
    sysmeta.py(133)
    sysmeta.py(528)
    revision.py(125)
    revision.py(411)
    base.py(741)
    base.py(779)
    base.py(851)
    base.py(900)
    query.py(760)
    compiler.py(1429)
    compiler.py(1100)
    utils.py(67)
    utils.py(76)
    utils.py(84)
    utils.py(89)
    utils.py(84)
    Type: <class 'django.db.utils.IntegrityError'>
    Value: duplicate key value violates unique constraint "app_scienceobject_obsoleted_by_id_key"

@ThomasThelen ThomasThelen mentioned this issue May 18, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant