Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.

Fix primary key assumption #23

Merged
merged 4 commits into from Jul 31, 2015
Merged

Fix primary key assumption #23

merged 4 commits into from Jul 31, 2015

Conversation

philandstuff
Copy link
Contributor

Previously, a host of school.beta.openregister.org would cause the
register to think the primary key was school.beta. After this commit,
it thinks it is school.

We can remove this hack if we make the functional tests supply a Host
header which the ResourceBase class can inspect.

As part of this, I changed `ft_test_pkey` to `ft-test-pkey` as
underscores aren't normally allowed in hostnames.
Previously, a host of school.beta.openregister.org would cause the
register to think the primary key was `school.beta`.  After this commit,
it thinks it is `school`.
We don't need to construct the whole request URL in order to extract the
Host (and handle the resulting exceptions from the URI constructor) when
we can just fetch the Host header directly.
After the changes to ResourceBase, this test was broken.
om-sharma added a commit that referenced this pull request Jul 31, 2015
@om-sharma om-sharma merged commit 0892593 into master Jul 31, 2015
@om-sharma om-sharma deleted the fix-primary-key-assumption branch July 31, 2015 09:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants