question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bulk operation doesn't persist resources in the database

See original GitHub issue

Hi guys, I’m trying to perform a bulk update using add operations like this:

{
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:BulkRequest"],
    "Operations": [
        {
            "method": "POST",
            "path": "/Users",
            "bulkId": "user1",
            "data": {
                "userName": "superalice",
                "name": {
                    "familyName": "Tuck",
                    "givenName": "Alice",
                    "formated": "Alice Tuck"
                },
                "active": true,
                "emails": [
                    {
                        "primary": true,
                        "type": "work",
                        "value": "user1@company.org"
                    }
                ]
            }
        },
        {
            "method": "POST",
            "path": "/Users",
            "bulkId": "user2",
            "data": {
                "userName": "superjohn",
                "name": {
                    "familyName": "Tennor",
                    "givenName": "John",
                    "formated": "John Tennor"
                },
                "active": true,
                "emails": [
                    {
                        "primary": true,
                        "type": "work",
                        "value": "user2@company.org"
                    }
                ]
            }
        }
    ]
}

I get this response every time, but the database is empty, no element gets persisted into the table SCIMRepresentationLst

{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:BulkResponse"
    ],
    "Operations": [
        {
            "method": "POST",
            "bulkId": "user1",
            "status": {
                "code": 200
            }
        },
        {
            "method": "POST",
            "bulkId": "user2",
            "status": {
                "code": 200
            }
        }
    ]
}

Am I doing something wrong, or is it a bug?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
simpleidservercommented, Aug 31, 2022

The feature is now available in the master branch.

1reaction
simpleidservercommented, Aug 31, 2022

Hello,

Indeed this feature is not supported by SimpleIdServer project. We are going to implement it in the next release.

KR,

SID

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hibernate bulk operations migrate databases - java
save () to a final SQL output and then write it to a file. Use Talend : know as probably the best way,...
Read more >
Should a single failure fail a bulk operation?
If one only has a few 1000 records, one batch would be OK. Here you can be somewhat permissive with failures, but one...
Read more >
BULK INSERT (Transact-SQL) - SQL Server
BULK INSERT can import data from a disk or Azure Blob Storage (including network, floppy disk, hard disk, and so on).
Read more >
Database Connector Bulk Operations Change Table ...
An application uses Database connector's bulk operations. The performance of the bulk operation doesn't improve greatly compare with the non-bulk operation.
Read more >
How to Work With Bulk Insert Operation - RavenDB
BulkInsert is useful when inserting a large quantity of data from the client to the server. It is an optimized time-saving approach with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found