Create/update item Docstore REST API doesn't save fastAdd attribute

Notes

I am trying to create an item using an HTTP POST to /oledocstore/documentrest/item/doc/ using the following XML.

<itemDoc>
<category>work</category>
<content>&lt;item&gt;
&lt;fastAddFlag&gt;true&lt;/fastAddFlag&gt;
&lt;accessInformation&gt;
&lt;barcode&gt;636477406306729978&lt;/barcode&gt;
&lt;uri&gt;http://localhost&lt;/uri&gt;
&lt;/accessInformation&gt;
&lt;itemType&gt;
&lt;codeValue&gt;spcl&lt;/codeValue&gt;
&lt;/itemType&gt;
&lt;temporaryItemType&gt;
&lt;codeValue&gt;stks7&lt;/codeValue&gt;
&lt;/temporaryItemType&gt;
&lt;itemStatus&gt;
&lt;codeValue&gt;AVAILABLE&lt;/codeValue&gt;
&lt;/itemStatus&gt;
&lt;itemStatusEffectiveDate&gt;12/1/2017 3:57:10 PM&lt;/itemStatusEffectiveDate&gt;
&lt;location&gt;
&lt;locationLevel&gt;
&lt;name&gt;UC&lt;/name&gt;
&lt;level&gt;Institution&lt;/level&gt;
&lt;locationLevel&gt;
&lt;name&gt;JRL&lt;/name&gt;
&lt;level&gt;Library&lt;/level&gt;
&lt;locationLevel&gt;
&lt;name&gt;Gen&lt;/name&gt;
&lt;level&gt;Shelving&lt;/level&gt;
&lt;/locationLevel&gt;
&lt;/locationLevel&gt;
&lt;/locationLevel&gt;
&lt;/location&gt;
&lt;callNumber&gt;
&lt;prefix&gt;A&lt;/prefix&gt;
&lt;number&gt;B&lt;/number&gt;
&lt;shelvingScheme&gt;
&lt;codeValue&gt;LCC&lt;/codeValue&gt;
&lt;/shelvingScheme&gt;
&lt;/callNumber&gt;
&lt;enumeration&gt;C&lt;/enumeration&gt;
&lt;chronology&gt;D&lt;/chronology&gt;
&lt;copyNumber&gt;E&lt;/copyNumber&gt;
&lt;numberOfPieces&gt;2&lt;/numberOfPieces&gt;
&lt;purchaseOrderLineItemIdentifier&gt;12345&lt;/purchaseOrderLineItemIdentifier&gt;
&lt;vendorLineItemIdentifier&gt;67890&lt;/vendorLineItemIdentifier&gt;
&lt;fund&gt;F&lt;/fund&gt;
&lt;price&gt;123.45&lt;/price&gt;
&lt;claimsReturnedFlag&gt;true&lt;/claimsReturnedFlag&gt;
&lt;claimsReturnedFlagCreateDate&gt;12/01/2017 00:00:00&lt;/claimsReturnedFlagCreateDate&gt;
&lt;claimsReturnedNote&gt;G&lt;/claimsReturnedNote&gt;
&lt;currentBorrower&gt;41327&lt;/currentBorrower&gt;
&lt;proxyBorrower&gt;41327&lt;/proxyBorrower&gt;
&lt;dueDateTime&gt;12/01/2017 03:57:10PM&lt;/dueDateTime&gt;
&lt;checkinNote&gt;H&lt;/checkinNote&gt;
&lt;itemDamagedStatus&gt;true&lt;/itemDamagedStatus&gt;
&lt;damagedItemNote&gt;I&lt;/damagedItemNote&gt;
&lt;missingPieceFlag&gt;true&lt;/missingPieceFlag&gt;
&lt;missingPieceEffectiveDate&gt;12/01/2017 00:00:00&lt;/missingPieceEffectiveDate&gt;
&lt;missingPiecesCount&gt;2&lt;/missingPiecesCount&gt;
&lt;missingPieceFlagNote&gt;J&lt;/missingPieceFlagNote&gt;
&lt;barcodeARSL&gt;636477406306729978&lt;/barcodeARSL&gt;
&lt;numberOfRenew&gt;1&lt;/numberOfRenew&gt;
&lt;checkOutDateTime&gt;12/01/2017 03:57:10PM&lt;/checkOutDateTime&gt;
&lt;originalDueDate&gt;12/01/2017 03:57:10PM&lt;/originalDueDate&gt;
&lt;descriptionOfPieces&gt;J&lt;/descriptionOfPieces&gt;
&lt;volumeNumber&gt;K&lt;/volumeNumber&gt;
&lt;/item&gt;</content>
<createdBy>jemiller-test</createdBy>
<fastAdd>true</fastAdd>
<format>oleml</format>
<staffOnly>true</staffOnly>
<type>item</type>
<updatedBy>jemiller-test</updatedBy>
<holdingsDoc>
<id>who-10347549</id>
</holdingsDoc>
</itemDoc>

Everything is working. However, it is not setting the value of the FAST_ADD column in the ole_ds_item_t table. I'm assuming it's probably not being set in Solr also.

I used the XML returned from an HTTP GET to figure out the format of the XML to send and found that there are two fastAdd properties in it. One in the item element and another in the itemDoc element. I hae tried setting both of these and neither value seems to be picked up.

I'm attempting to do a batch update of items using the REST API. So, I need to get this working.

Am I not constructing the XML correctly, or, is this a bug?

Assignee

Suresh Subramanian

Reporter

Jon Miller

Labels

None

Priority By Function

None

Solr Version

None

Work Group

None

Process &amp; Sub-Process

API - Other

Parent Jira

None

Co-Assignee/s

None

Due By

None

Contribution

No

Contributing Developer

None

Contributing Institution

None

Contribution Type

None

Value Proposition

None

Components

Fix versions

Priority

Blocker
Configure