Bug in Sequelize Update while updating large hash value










0















There is a weird issue popping out while updating a large hash value using sequleize.
I have a hash having



value='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk0NDY5YWY1MjdkM2RlZjBkZGMxYTRlYWU1MjdmZWQ0IiwiaWF0IjoxNTQyMTgxMzkwLCJleHAiOjE1NDIxOTIxOTB9.SxShzkA_j3wSprlt8bHwJwzxirQ-'


and have update a hash attribute of my table using the following:



TempUser.update( hash:hash, where: user: req.body.TempUser.user );


and the result in a log is



UPDATE temp_user SET hash='$2a$10$e35JRfRZdyitrkJOtrogOeuCUq1Dtwz9I0jHRytRv2z.zEYAmul9K',updated_at='2018-11-14 07:34:32' WHERE user = 'd@d.com'.


I cannot figure out why this is happening.



I have raised this issue in github too. dont why it is repeatedly closed.
https://github.com/sequelize/sequelize/issues/10161










share|improve this question
























  • what is the issue?

    – majidarif
    Nov 14 '18 at 8:16











  • Say I have a hash value And i am trying to update hash attribute of my table using Sequlize's update function. The value which is updated is not the same which i supplied. Can you check the question once.

    – Dila Gurung
    Nov 14 '18 at 8:21







  • 1





    I think the hash variable does not contain the value you are expecting because on your log it clearly shows a bcrypt hash. while the value you're showing is base64.

    – majidarif
    Nov 14 '18 at 8:22












  • can you provide more of your relevant code? might as well just be hash: value maybe.

    – majidarif
    Nov 14 '18 at 8:23







  • 1





    Which is why we needed more of the code. Ciao

    – majidarif
    Nov 14 '18 at 11:22















0















There is a weird issue popping out while updating a large hash value using sequleize.
I have a hash having



value='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk0NDY5YWY1MjdkM2RlZjBkZGMxYTRlYWU1MjdmZWQ0IiwiaWF0IjoxNTQyMTgxMzkwLCJleHAiOjE1NDIxOTIxOTB9.SxShzkA_j3wSprlt8bHwJwzxirQ-'


and have update a hash attribute of my table using the following:



TempUser.update( hash:hash, where: user: req.body.TempUser.user );


and the result in a log is



UPDATE temp_user SET hash='$2a$10$e35JRfRZdyitrkJOtrogOeuCUq1Dtwz9I0jHRytRv2z.zEYAmul9K',updated_at='2018-11-14 07:34:32' WHERE user = 'd@d.com'.


I cannot figure out why this is happening.



I have raised this issue in github too. dont why it is repeatedly closed.
https://github.com/sequelize/sequelize/issues/10161










share|improve this question
























  • what is the issue?

    – majidarif
    Nov 14 '18 at 8:16











  • Say I have a hash value And i am trying to update hash attribute of my table using Sequlize's update function. The value which is updated is not the same which i supplied. Can you check the question once.

    – Dila Gurung
    Nov 14 '18 at 8:21







  • 1





    I think the hash variable does not contain the value you are expecting because on your log it clearly shows a bcrypt hash. while the value you're showing is base64.

    – majidarif
    Nov 14 '18 at 8:22












  • can you provide more of your relevant code? might as well just be hash: value maybe.

    – majidarif
    Nov 14 '18 at 8:23







  • 1





    Which is why we needed more of the code. Ciao

    – majidarif
    Nov 14 '18 at 11:22













0












0








0








There is a weird issue popping out while updating a large hash value using sequleize.
I have a hash having



value='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk0NDY5YWY1MjdkM2RlZjBkZGMxYTRlYWU1MjdmZWQ0IiwiaWF0IjoxNTQyMTgxMzkwLCJleHAiOjE1NDIxOTIxOTB9.SxShzkA_j3wSprlt8bHwJwzxirQ-'


and have update a hash attribute of my table using the following:



TempUser.update( hash:hash, where: user: req.body.TempUser.user );


and the result in a log is



UPDATE temp_user SET hash='$2a$10$e35JRfRZdyitrkJOtrogOeuCUq1Dtwz9I0jHRytRv2z.zEYAmul9K',updated_at='2018-11-14 07:34:32' WHERE user = 'd@d.com'.


I cannot figure out why this is happening.



I have raised this issue in github too. dont why it is repeatedly closed.
https://github.com/sequelize/sequelize/issues/10161










share|improve this question
















There is a weird issue popping out while updating a large hash value using sequleize.
I have a hash having



value='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk0NDY5YWY1MjdkM2RlZjBkZGMxYTRlYWU1MjdmZWQ0IiwiaWF0IjoxNTQyMTgxMzkwLCJleHAiOjE1NDIxOTIxOTB9.SxShzkA_j3wSprlt8bHwJwzxirQ-'


and have update a hash attribute of my table using the following:



TempUser.update( hash:hash, where: user: req.body.TempUser.user );


and the result in a log is



UPDATE temp_user SET hash='$2a$10$e35JRfRZdyitrkJOtrogOeuCUq1Dtwz9I0jHRytRv2z.zEYAmul9K',updated_at='2018-11-14 07:34:32' WHERE user = 'd@d.com'.


I cannot figure out why this is happening.



I have raised this issue in github too. dont why it is repeatedly closed.
https://github.com/sequelize/sequelize/issues/10161







node.js sequelize.js






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 8:17









majidarif

9,25785393




9,25785393










asked Nov 14 '18 at 8:12









Dila GurungDila Gurung

7451118




7451118












  • what is the issue?

    – majidarif
    Nov 14 '18 at 8:16











  • Say I have a hash value And i am trying to update hash attribute of my table using Sequlize's update function. The value which is updated is not the same which i supplied. Can you check the question once.

    – Dila Gurung
    Nov 14 '18 at 8:21







  • 1





    I think the hash variable does not contain the value you are expecting because on your log it clearly shows a bcrypt hash. while the value you're showing is base64.

    – majidarif
    Nov 14 '18 at 8:22












  • can you provide more of your relevant code? might as well just be hash: value maybe.

    – majidarif
    Nov 14 '18 at 8:23







  • 1





    Which is why we needed more of the code. Ciao

    – majidarif
    Nov 14 '18 at 11:22

















  • what is the issue?

    – majidarif
    Nov 14 '18 at 8:16











  • Say I have a hash value And i am trying to update hash attribute of my table using Sequlize's update function. The value which is updated is not the same which i supplied. Can you check the question once.

    – Dila Gurung
    Nov 14 '18 at 8:21







  • 1





    I think the hash variable does not contain the value you are expecting because on your log it clearly shows a bcrypt hash. while the value you're showing is base64.

    – majidarif
    Nov 14 '18 at 8:22












  • can you provide more of your relevant code? might as well just be hash: value maybe.

    – majidarif
    Nov 14 '18 at 8:23







  • 1





    Which is why we needed more of the code. Ciao

    – majidarif
    Nov 14 '18 at 11:22
















what is the issue?

– majidarif
Nov 14 '18 at 8:16





what is the issue?

– majidarif
Nov 14 '18 at 8:16













Say I have a hash value And i am trying to update hash attribute of my table using Sequlize's update function. The value which is updated is not the same which i supplied. Can you check the question once.

– Dila Gurung
Nov 14 '18 at 8:21






Say I have a hash value And i am trying to update hash attribute of my table using Sequlize's update function. The value which is updated is not the same which i supplied. Can you check the question once.

– Dila Gurung
Nov 14 '18 at 8:21





1




1





I think the hash variable does not contain the value you are expecting because on your log it clearly shows a bcrypt hash. while the value you're showing is base64.

– majidarif
Nov 14 '18 at 8:22






I think the hash variable does not contain the value you are expecting because on your log it clearly shows a bcrypt hash. while the value you're showing is base64.

– majidarif
Nov 14 '18 at 8:22














can you provide more of your relevant code? might as well just be hash: value maybe.

– majidarif
Nov 14 '18 at 8:23






can you provide more of your relevant code? might as well just be hash: value maybe.

– majidarif
Nov 14 '18 at 8:23





1




1





Which is why we needed more of the code. Ciao

– majidarif
Nov 14 '18 at 11:22





Which is why we needed more of the code. Ciao

– majidarif
Nov 14 '18 at 11:22












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295607%2fbug-in-sequelize-update-while-updating-large-hash-value%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295607%2fbug-in-sequelize-update-while-updating-large-hash-value%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

Museum of Modern and Contemporary Art of Trento and Rovereto