ProfileAPI: Returns 404 when querying long string

Found in

EPiServer.Profiles.Client 1.6.0

Fixed in

EPiServer.Profiles.Client 1.7.0

Created

Sep 17, 2018

Updated

Nov 30, 2018

State

Closed, Fixed and tested


Description

Steps to reproduce

1. Create a profile with long string in the value of Name, eg:
POST: /api/v1.0/profiles

{ "Name": "aNwvFoeTbwiKVDpYpQhuXtcxNOIGCXpGBaYemOBKDfJZiaKSTaVnEbpSFBEKWimPnBnAWuyqaxFoolhhqiXuhZleGZoIEhZYlspxqmxsWnZKUTRHEnBoAdLYiZYerQEQuwQyejHBJGyxUYEojsWiXClHvSJqGPHKrjGnCxaRfDWqSCKbLdRUiPjShkBYutmAFwlHmgLvgqVllxytYRyiQmJqvoiLVaJNPnRdbmEYLhMJwrOkaFLlQRtMKaAUabxklenWfbdTnAGpNlSPWqfbngAxdMqdlCrsVWSmslbrjpMwvCPkfMDrikggJjOuXNgFVWcscgTdvGGLoleRCUAjsjcqHLKSqrvYSIrAEBieXrAIwIBwpnbryfkaLORcnvCoCrCfoHqcwufiXAyheZpLxeelifuWCtsoyTjTYCOebMmGtXLpVyFpoNsmkVGERxkHpGakhbpMuGlVkDnMgMqQtpSYaKToOnlQsPHHkVuBHMCPNqEZoWvghXdpCqKMmgdoolDHhFBNGkbvFEwmKVmLVYRoHHICpEcQeWCkOtAKLHccCLvUdSDMVLgXTqpmUhkDIpPojOeiskLZpQTodXvxaaOBNVZVMfheDiFcYigmuUYeylDuLSLwqHoDVAGQcsRWMBtwNUKErkamulCHuQvhWaORQVEVnsRDDidWRPskxBIJCEQffJyGKxxsVeQHIdLjmEEcwyhbrLWZmfRAYqOxFrwBBkRGvYcBsRWhVOnNQyMfWNMiBMXcJSVkwhxAiVUSRDwSTLFQpOxXatubMhWMxFtSmamZRhfdEeKtPqwmqHOvQSVxDWspJOBobijktXpkCnoNxYxAVUgpHCcnsCPPWtJimkFtGShNCnyLtRKSiyYnbowBuEgrqihZduGBSlauZCGvXRaovAjcLXvLKsKXpHnVQW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VTRJhLUoqFUUoXIbEFLujgyyvSMoTXiLrndHViRTgFfNpXritMYNTrxFQbuifjqocxwPGrG", "DeviceIds": [ "a1111111111" ] }

2. Use ProfileAPI to get data like this:
GET: /api/v1.0/profiles/?$filter=Name eq aNwvFoeTbwiKVDpYpQhuXtcxNOIGCXpGBaYemOBKDfJZiaKSTaVnEbpSFBEKWimPnBnAWuyqaxFoolhhqiXuhZleGZoIEhZYlspxqmxsWnZKUTRHEnBoAdLYiZYerQEQuwQyejHBJGyxUYEojsWiXClHvSJqGPHKrjGnCxaRfDWqSCKbLdRUiPjShkBYutmAFwlHmgLvgqVllxytYRyiQmJqvoiLVaJNPnRdbmEYLhMJwrOkaFLlQRtMKaAUabxklenWfbdTnAGpNlSPWqfbngAxdMqdlCrsVWSmslbrjpMwvCPkfMDrikggJjOuXNgFVWcscgTdvGGLoleRCUAjsjcqHLKSqrvYSIrAEBieXrAIwIBwpnbryfkaLORcnvCoCrCfoHqcwufiXAyheZpLxeelifuWCtsoyTjTYCOebMmGtXLpVyFpoNsmkVGERxkHpGakhbpMuGlVkDnMgMqQtpSYaKToOnlQsPHHkVuBHMCPNqEZoWvghXdpCqKMmgdoolDHhFBNGkbvFEwmKVmLVYRoHHICpEcQeWCkOtAKLHccCLvUdSDMVLgXTqpmUhkDIpPojOeiskLZpQTodXvxaaOBNVZVMfheDiFcYigmuUYeylDuLSLwqHoDVAGQcsRWMBtwNUKErkamulCHuQvhWaORQVEVnsRDDidWRPskxBIJCEQffJyGKxxsVeQHIdLjmEEcwyhbrLWZmfRAYqOxFrwBBkRGvYcBsRWhVOnNQyMfWNMiBMXcJSVkwhxAiVUSRDwSTLFQpOxXatubMhWMxFtSmamZRhfdEeKtPqwmqHOvQSVxDWspJOBobijktXpkCnoNxYxAVUgpHCcnsCPPWtJimkFtGShNCnyLtRKSiyYnbowBuEgrqihZduGBSlauZCGvXRaovAjcLXvLKsKXpHnVQWbePbDQaLpKTddSIomrugBrlOFPLfQiaVjKoFUEGCBA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FfNpXritMYNTrxFQbuifjqocxwPGrG

Expected:
Returns a 200 with the profile in step 1.

Actual:
Returns 404 Not found with message:
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."