Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8510145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:37:31+00:00 2026-06-11T03:37:31+00:00

I have existing entity in datastore. I can find it Admin Console by attribute

  • 0

I have existing entity in datastore. I can find it Admin Console by attribute query e.g.:

SELECT * FROM UserEntry where email = 'user@mail.com'

and also query it by encoded key string, e.g.:

SELECT * FROM UserEntry where __key__ = KEY('cy1hcHByIAsSCVVzZXJFbnRyeM')

However, when I query the entity by unencoded key, it is not found:

SELECT * where __key__ = KEY('UserEntry','user@mail.com')

From former queries I can verify that the key is correct and the same query works for other entities of the same type.

I experience the same behavior when I try to access the entity via JDO API:

pm.getObjectById(UserEntry.class, "user@mail.com");

This code results in following exception:

javax.jdo.JDOObjectNotFoundException: Could not retrieve entity of kind UserEntry with key UserEntry("user@mail.com")

How did this happen? How can I resolve this issue and avoid it in the future?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:37:33+00:00Added an answer on June 11, 2026 at 3:37 am

    Off-line we discovered that the urlsafe key string encodes for a username with a space added, as if it encoded KEY('UserEntry','user@mail.com '). That seems an input validation bug in the program.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem adding ADO.Net Entity Data Model to my existing project, or
I have existing code that uses CMNewProfileSearch to find then iterate over the color
First some brief background: I have an existing ASP.NET MVC 1 application using Entity
I have an existing SQL Server database, where I store data from large specific
I've got an application with a working Entity model generated from an existing database.
I'd like to add user-defined custom fields to an existing entity in EclipseLink. For
I have an existing entity that has been created by scaffolding. Now I'm realizing
I have a existing DB and I use the approach DB First with Entity
I have an existing website developped using ASP.NET MVC 3 and Entity Framework 4
I have a problem with some simple code, I'm refactoring some existing code from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.