top of page

A Plus Sign Became a Space: Check the URL Decoder Before Mapping the Asset

3 days ago
3 min read

An asset identifier arrives with a space where the sender recorded a plus sign. Renaming the asset may make one import succeed while leaving the real conversion error unresolved. Inspect the URL component and decoding rules before altering the identity used by historical records.


Original conceptual illustration: A Plus Sign Became a Space: Check the URL Decoder Before Mapping the Asset. Not a live installation or software screen.
Original conceptual illustration; not a specific product, live software screen or customer installation.

A plus sign is not a universal synonym for a space. Form-style query parsing applies a specific conversion that must match the sender's encoding.

1. Locate the component carrying the identifier


Record whether the value appears in a path segment, query parameter, form body or JSON body. These are different contexts. A value prepared for one component cannot safely be copied into another without the corresponding encoding rules.


Start with the ProSight Software platform overview to define the intended reporting and asset-identity outcome. This article examines a general interface boundary, not a guaranteed endpoint or decoding feature in a particular ProSight Software deployment. Verify the actual integration contract and runtime before implementing changes.


RFC 3986 treats plus as a reserved character; the WHATWG form-urlencoded parser specifically replaces plus bytes with spaces before percent-decoding. That form convention explains many query-parameter surprises. It does not justify replacing plus signs in every path or arbitrary payload.


2. Make a three-case acceptance fixture


Choose synthetic identifiers A+B, A B and A%2BB. They must remain distinguishable if the application treats them as different identities. Using only an alphanumeric sample will not exercise the failing boundary.


Under a form-style query contract, an encoded value A%2BB decodes to the literal A+B. A+B decodes to A B under that same parser. An original identifier containing the literal characters A%2BB needs the percent character represented appropriately, such as A%252BB, so one decoding pass preserves the intended percent sequence.


These are component-value examples, not complete URLs. Use the runtime's documented query-building facility rather than concatenating untrusted values into a URL. Have it encode the original value exactly once for the agreed component. Keep the original input, emitted representation and decoded result together in the test record.


Original explanatory diagram for A Plus Sign Became a Space: Check the URL Decoder Before Mapping the Asset. Synthetic examples and limitations are explained in the article.
Original explanatory diagram. Examples are illustrative; verify the actual device, interface and application requirements.

3. Check for a second decoding pass


An intermediary, framework and application helper may each appear to offer convenient decoding. Applying another pass to an already decoded identifier can change literal percent sequences into different characters. Trace each boundary rather than adding compensating replacements at the final mapping stage.


Compare the producer's original identifier with the receiver's value before lookup. Preserve the exact character sequence; a display font or copied screenshot may conceal a difference. Keep credentials and personal data out of diagnostic examples, and use a non-production fixture for routing tests.


Do not normalise spaces and plus signs together unless the identity contract explicitly defines them as equivalent. Otherwise two assets may collapse onto the same lookup key. A successful import after a blanket replacement is insufficient evidence that the correct asset received the observation.


4. Verify mapping after decoding


Form-style input value

Result after one parse

A%2BB

A+B

A+B

A B

A%252BB

A%2BB

Two inputs resolve to one asset unexpectedly

Investigate conversion and lookup rules


Verify the destination asset, field and stored value for every synthetic case. The finite telemetry validation guide covers a separate value-quality test; correct numeric handling cannot compensate for mapping the observation to the wrong asset.


Should every plus be replaced with %2B?


Not by a global search-and-replace over a complete URL. Encode the original component value using its documented rules, without double-encoding already prepared data.


Is a JSON identifier subject to the form rule?


Not merely because it contains a plus sign. Its transport and parser must be identified. JSON text and form-urlencoded data have different contracts.


5. Recommended integration assessment


Use ProSight Software engineered integration planning to scope identity handling across producer, gateway and application boundaries. Supply a redacted original identifier, emitted request and receiver-side value, together with the libraries and versions involved.


Ask for a written component-encoding contract and regression cases that preserve distinct assets. Confirm available implementation facilities and access controls during scoping; this diagnostic method does not promise a particular software feature or automatic repair.



Need help with your application?


Send the exact equipment and interface versions, the required outcome and a sanitised example. Ask for a confirmed scope and an acceptance check suited to your application.







Comments


prosight-software-logo (1).png
bottom of page